2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.3.4.
5 # Report bugs to <dhcp-users@isc.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and dhcp-users@isc.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='dhcp'
583 PACKAGE_VERSION
='4.3.4'
584 PACKAGE_STRING
='DHCP 4.3.4'
585 PACKAGE_BUGREPORT
='dhcp-users@isc.org'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars
='am__EXEEXT_FALSE
639 DISTCHECK_ATF_CONFIGURE_FLAG
681 MAINTAINER_MODE_FALSE
695 INSTALL_STRIP_PROGRAM
737 program_transform_name
750 enable_option_checking
752 enable_maintainer_mode
753 enable_dependency_tracking
765 enable_secs_byteorder
783 with_bind_extra_config
790 ac_precious_vars
='build_alias
801 # Initialize some variables set by options.
803 ac_init_version
=false
804 ac_unrecognized_opts
=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
815 program_transform_name
=s
,x
,x
,
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir
='${exec_prefix}/bin'
830 sbindir
='${exec_prefix}/sbin'
831 libexecdir
='${exec_prefix}/libexec'
832 datarootdir
='${prefix}/share'
833 datadir
='${datarootdir}'
834 sysconfdir
='${prefix}/etc'
835 sharedstatedir
='${prefix}/com'
836 localstatedir
='${prefix}/var'
837 includedir
='${prefix}/include'
838 oldincludedir
='/usr/include'
839 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir
='${datarootdir}/info'
845 libdir
='${exec_prefix}/lib'
846 localedir
='${datarootdir}/locale'
847 mandir
='${datarootdir}/man'
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\
$ac_option
861 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
874 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
877 -build |
--build |
--buil |
--bui |
--bu)
878 ac_prev
=build_alias
;;
879 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
880 build_alias
=$ac_optarg ;;
882 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
883 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
884 ac_prev
=cache_file
;;
885 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
886 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
887 cache_file
=$ac_optarg ;;
890 cache_file
=config.cache
;;
892 -datadir |
--datadir |
--datadi |
--datad)
894 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
895 datadir
=$ac_optarg ;;
897 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
898 |
--dataroo |
--dataro |
--datar)
899 ac_prev
=datarootdir
;;
900 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
901 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
902 datarootdir
=$ac_optarg ;;
904 -disable-* |
--disable-*)
905 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
908 as_fn_error $?
"invalid feature name: $ac_useropt"
909 ac_useropt_orig
=$ac_useropt
910 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep
=', ';;
918 eval enable_
$ac_useropt=no
;;
920 -docdir |
--docdir |
--docdi |
--doc |
--do)
922 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
925 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
927 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
930 -enable-* |
--enable-*)
931 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
934 as_fn_error $?
"invalid feature name: $ac_useropt"
935 ac_useropt_orig
=$ac_useropt
936 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep
=', ';;
944 eval enable_
$ac_useropt=\
$ac_optarg ;;
946 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
947 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
948 |
--exec |
--exe |
--ex)
949 ac_prev
=exec_prefix
;;
950 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
951 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
952 |
--exec=* |
--exe=* |
--ex=*)
953 exec_prefix
=$ac_optarg ;;
955 -gas |
--gas |
--ga |
--g)
956 # Obsolete; use --with-gas.
959 -help |
--help |
--hel |
--he |
-h)
961 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
962 ac_init_help
=recursive
;;
963 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
964 ac_init_help
=short
;;
966 -host |
--host |
--hos |
--ho)
967 ac_prev
=host_alias
;;
968 -host=* |
--host=* |
--hos=* |
--ho=*)
969 host_alias
=$ac_optarg ;;
971 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
973 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
975 htmldir
=$ac_optarg ;;
977 -includedir |
--includedir |
--includedi |
--included |
--include \
978 |
--includ |
--inclu |
--incl |
--inc)
979 ac_prev
=includedir
;;
980 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
981 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
982 includedir
=$ac_optarg ;;
984 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
986 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
987 infodir
=$ac_optarg ;;
989 -libdir |
--libdir |
--libdi |
--libd)
991 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
994 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
995 |
--libexe |
--libex |
--libe)
996 ac_prev
=libexecdir
;;
997 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
998 |
--libexe=* |
--libex=* |
--libe=*)
999 libexecdir
=$ac_optarg ;;
1001 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1002 ac_prev
=localedir
;;
1003 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1004 localedir
=$ac_optarg ;;
1006 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1007 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1008 ac_prev
=localstatedir
;;
1009 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1010 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1011 localstatedir
=$ac_optarg ;;
1013 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1015 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1016 mandir
=$ac_optarg ;;
1018 -nfp |
--nfp |
--nf)
1019 # Obsolete; use --without-fp.
1022 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1023 |
--no-cr |
--no-c |
-n)
1026 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1027 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1030 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1031 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1032 |
--oldin |
--oldi |
--old |
--ol |
--o)
1033 ac_prev
=oldincludedir
;;
1034 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1035 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1036 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1037 oldincludedir
=$ac_optarg ;;
1039 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1041 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1042 prefix
=$ac_optarg ;;
1044 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1045 |
--program-pre |
--program-pr |
--program-p)
1046 ac_prev
=program_prefix
;;
1047 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1048 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1049 program_prefix
=$ac_optarg ;;
1051 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1052 |
--program-suf |
--program-su |
--program-s)
1053 ac_prev
=program_suffix
;;
1054 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1055 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1056 program_suffix
=$ac_optarg ;;
1058 -program-transform-name |
--program-transform-name \
1059 |
--program-transform-nam |
--program-transform-na \
1060 |
--program-transform-n |
--program-transform- \
1061 |
--program-transform |
--program-transfor \
1062 |
--program-transfo |
--program-transf \
1063 |
--program-trans |
--program-tran \
1064 |
--progr-tra |
--program-tr |
--program-t)
1065 ac_prev
=program_transform_name
;;
1066 -program-transform-name=* |
--program-transform-name=* \
1067 |
--program-transform-nam=* |
--program-transform-na=* \
1068 |
--program-transform-n=* |
--program-transform-=* \
1069 |
--program-transform=* |
--program-transfor=* \
1070 |
--program-transfo=* |
--program-transf=* \
1071 |
--program-trans=* |
--program-tran=* \
1072 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1073 program_transform_name
=$ac_optarg ;;
1075 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1077 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1078 pdfdir
=$ac_optarg ;;
1080 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1082 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1085 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1086 |
-silent |
--silent |
--silen |
--sile |
--sil)
1089 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1091 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1093 sbindir
=$ac_optarg ;;
1095 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1096 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1097 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1099 ac_prev
=sharedstatedir
;;
1100 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1101 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1102 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1104 sharedstatedir
=$ac_optarg ;;
1106 -site |
--site |
--sit)
1108 -site=* |
--site=* |
--sit=*)
1111 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1113 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1114 srcdir
=$ac_optarg ;;
1116 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1117 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1118 ac_prev
=sysconfdir
;;
1119 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1120 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1121 sysconfdir
=$ac_optarg ;;
1123 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1124 ac_prev
=target_alias
;;
1125 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1126 target_alias
=$ac_optarg ;;
1128 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1131 -version |
--version |
--versio |
--versi |
--vers |
-V)
1132 ac_init_version
=: ;;
1135 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=\
$ac_optarg ;;
1150 -without-* |
--without-*)
1151 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1154 as_fn_error $?
"invalid package name: $ac_useropt"
1155 ac_useropt_orig
=$ac_useropt
1156 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep
=', ';;
1164 eval with_
$ac_useropt=no
;;
1167 # Obsolete; use --with-x.
1170 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1171 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1172 ac_prev
=x_includes
;;
1173 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1174 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1175 x_includes
=$ac_optarg ;;
1177 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1178 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1179 ac_prev
=x_libraries
;;
1180 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1181 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1182 x_libraries
=$ac_optarg ;;
1184 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1189 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1193 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1195 eval $ac_envvar=\
$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 if test -n "$ac_prev"; then
1210 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $?
"missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1217 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 # Check all directory arguments for consistency.
1223 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val
=\$
$ac_var
1229 # Remove trailing slashes.
1232 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\
$ac_val;;
1235 # Be sure to have absolute directory names.
1237 [\\/$
]* | ?
:[\\/]* ) continue;;
1238 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1240 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1248 target
=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x
; then
1252 if test "x$build_alias" = x
; then
1253 cross_compiling
=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1260 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1262 test "$silent" = yes && exec 6>/dev
/null
1265 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di
=`ls -di .` &&
1267 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $?
"working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $?
"pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted
=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir
=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1305 ac_srcdir_defaulted
=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1309 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1323 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 for ac_var
in $ac_precious_vars; do
1326 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1328 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1339 \`configure' configures DHCP 4.3.4 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1402 --build=BUILD configure
for building on BUILD
[guessed
]
1403 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive
) echo "Configuration of DHCP 4.3.4:";;
1414 --disable-option-checking ignore unrecognized
--enable/--with options
1415 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1416 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1417 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1418 --disable-silent-rules verbose build output
(undo
: "make V=0")
1419 --enable-maintainer-mode
1420 enable make rules and dependencies not useful
(and
1421 sometimes confusing
) to the casual installer
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-debug create a debug-only version of the software
(default
1428 --enable-failover enable support
for failover
(default is
yes)
1429 --enable-execute enable support
for execute
() in config
(default is
1431 --enable-tracing enable support
for server activity tracing
(default
1433 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1434 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1435 --enable-dhcpv4o6 enable support
for DHCPv4-over-DHCPv6
(default is
1437 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1438 --enable-early-chroot enable chrooting prior to configuration
(default is
1440 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1442 --enable-use-sockets use the standard BSD socket API
(default is no
)
1443 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1445 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1446 --enable-binary-leases enable support
for binary insertion of leases
1448 --enable-kqueue use BSD kqueue
(default is no
)
1449 --enable-epoll use Linux epoll
(default is no
)
1450 --enable-devpoll use
/dev
/poll
(default is no
)
1453 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1454 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1455 --with-atf=PATH specify location where atf was installed
(or
"bind")
1456 --with-srv-lease-file=PATH
1457 File
for dhcpd leases
(default is
1458 LOCALSTATEDIR
/db
/dhcpd.leases
)
1459 --with-srv6-lease-file=PATH
1460 File
for dhcpd6 leases
(default is
1461 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1462 --with-cli-lease-file=PATH
1463 File
for dhclient leases
(default is
1464 LOCALSTATEDIR
/db
/dhclient.leases
)
1465 --with-cli6-lease-file=PATH
1466 File
for dhclient6 leases
(default is
1467 LOCALSTATEDIR
/db
/dhclient6.leases
)
1468 --with-srv-pid-file=PATH
1469 File
for dhcpd process information
(default is
1470 LOCALSTATEDIR
/run
/dhcpd.pid
)
1471 --with-srv6-pid-file=PATH
1472 File
for dhcpd6 process information
(default is
1473 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1474 --with-cli-pid-file=PATH
1475 File
for dhclient process information
(default is
1476 LOCALSTATEDIR
/run
/dhclient.pid
)
1477 --with-cli6-pid-file=PATH
1478 File
for dhclient6 process information
(default is
1479 LOCALSTATEDIR
/run
/dhclient6.pid
)
1480 --with-relay-pid-file=PATH
1481 File
for dhcrelay process information
(default is
1482 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1483 --with-relay6-pid-file=PATH
1484 File
for dhcrelay6 process information
(default is
1485 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1486 --with-randomdev=PATH Path
for random device
(default is
/dev
/random
)
1487 --with-bind-extra-config
1488 configure
bind librairies with some extra options
1490 --with-libbind=PATH
bind includes and libraries are
in PATH
1491 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1492 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1494 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1495 dhcpd
(default is no
)
1496 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1499 Some influential environment variables
:
1500 CC C compiler
command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1503 nonstandard directory
<lib dir
>
1504 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1505 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1506 you have headers
in a nonstandard directory
<include dir
>
1509 Use these variables to override the choices made by
`configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1512 Report bugs to <dhcp-users@isc.org>.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1575 DHCP configure 4.3.4
1576 generated by GNU Autoconf 2.69
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1599 *) ac_try_echo
=$ac_try;;
1601 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1605 if test -s conftest.err
; then
1606 grep -v '^ *+' conftest.err
>conftest.er1
1607 cat conftest.er1
>&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.
$ac_objext; then :
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.
$ac_ext >&5
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status
$ac_retval
1625 } # ac_fn_c_try_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1633 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1669 ac_fn_c_check_header_mongrel ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if eval \${$3+:} false; then :
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682 # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691 ac_header_compiler=yes
1693 ac_header_compiler=no
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707 ac_header_preproc=yes
1709 ac_header_preproc=no
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1715 # So? What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 ( $as_echo "## --------------------------------- ##
1735 ## Report this to dhcp-users@isc.org ##
1736 ## --------------------------------- ##"
1737 ) | sed "s/^/$as_me: WARNING: /" >&2
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 eval "$3=\$ac_header_compiler"
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_header_mongrel
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1765 *) ac_try_echo
=$ac_try;;
1767 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=$ac_status
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_find_intX_t LINENO BITS VAR
1829 # -----------------------------------
1830 # Finds a signed integer type with width BITS, setting cache variable VAR
1832 ac_fn_c_find_intX_t ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1836 $as_echo_n "checking for int$2_t... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1841 # Order is important - never check a type that is potentially smaller
1842 # than half of the expected target width.
1843 for ac_type in int$2_t 'int' 'long int' \
1844 'long long int' 'short int' 'signed char'; do
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 $ac_includes_default
1848 enum { N = $2 / 2 - 1 };
1852 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1854 return test_array [0];
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $ac_includes_default
1864 enum { N = $2 / 2 - 1 };
1868 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1869 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1871 return test_array [0];
1877 if ac_fn_c_try_compile "$LINENO"; then :
1884 eval "$3=\$ac_type" ;;
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 if eval test \"x\$"$3"\" = x"no"; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_find_intX_t
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_type
1958 # ac_fn_c_find_uintX_t LINENO BITS VAR
1959 # ------------------------------------
1960 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1962 ac_fn_c_find_uintX_t ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1966 $as_echo_n "checking for uint$2_t... " >&6; }
1967 if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1971 # Order is important - never check a type that is potentially smaller
1972 # than half of the expected target width.
1973 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1974 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $ac_includes_default
1981 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1983 return test_array [0];
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$3=\$ac_type" ;;
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 if eval test \"x\$"$3"\" = x"no"; then :
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_find_uintX_t
2012 # ac_fn_c_try_link LINENO
2013 # -----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext conftest$ac_exeext
2019 if { { ac_try="$ac_link"
2021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2022 *) ac_try_echo
=$ac_try;;
2024 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>conftest.err
2028 if test -s conftest.err
; then
2029 grep -v '^ *+' conftest.err
>conftest.er1
2030 cat conftest.er1
>&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_c_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest
$ac_exeext && {
2038 test "$cross_compiling" = yes ||
2039 test -x conftest
$ac_exeext
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.
$ac_ext >&5
2048 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2049 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2050 # interfere with the next link command; also delete a directory that is
2051 # left behind by Apple's compiler. We do this before executing the actions.
2052 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 as_fn_set_status
$ac_retval
2056 } # ac_fn_c_try_link
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \
${$3+:} false
; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2081 # include <limits.h>
2083 # include <assert.h>
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2110 if ac_fn_c_try_link
"$LINENO"; then :
2115 rm -f core conftest.err conftest.
$ac_objext \
2116 conftest
$ac_exeext conftest.
$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2126 # ----------------------------------------------------
2127 # Tries to find if the field MEMBER exists in type AGGR, after including
2128 # INCLUDES, setting cache variable VAR accordingly.
2129 ac_fn_c_check_member
()
2131 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2133 $as_echo_n "checking for $2.$3... " >&6; }
2134 if eval \
${$4+:} false
; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2150 if ac_fn_c_try_compile
"$LINENO"; then :
2153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2160 if (sizeof ac_aggr.$3)
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_member
2182 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2183 # --------------------------------------------
2184 # Tries to find the compile-time value of EXPR in a program that includes
2185 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2187 ac_fn_c_compute_int
()
2189 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2190 if test "$cross_compiling" = yes; then
2191 # Depending upon the size, compute the lo and hi bounds.
2192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2198 static int test_array [1 - 2 * !(($2) >= 0)];
2200 return test_array [0];
2206 if ac_fn_c_try_compile
"$LINENO"; then :
2209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2217 return test_array [0];
2223 if ac_fn_c_try_compile
"$LINENO"; then :
2224 ac_hi
=$ac_mid; break
2226 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2227 if test $ac_lo -le $ac_mid; then
2231 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2242 static int test_array [1 - 2 * !(($2) < 0)];
2244 return test_array [0];
2250 if ac_fn_c_try_compile
"$LINENO"; then :
2253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2259 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2261 return test_array [0];
2267 if ac_fn_c_try_compile
"$LINENO"; then :
2268 ac_lo
=$ac_mid; break
2270 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2271 if test $ac_mid -le $ac_hi; then
2275 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 # Binary search between lo and hi bounds.
2286 while test "x$ac_lo" != "x$ac_hi"; do
2287 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2296 return test_array [0];
2302 if ac_fn_c_try_compile
"$LINENO"; then :
2305 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2310 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2317 static long int longval () { return $2; }
2318 static unsigned long int ulongval () { return $2; }
2325 FILE *f = fopen ("conftest.val", "w");
2330 long int i = longval ();
2333 fprintf (f, "%ld", i);
2337 unsigned long int i = ulongval ();
2340 fprintf (f, "%lu", i);
2342 /* Do not output a trailing newline, as this causes \r\n confusion
2343 on some platforms. */
2344 return ferror (f) || fclose (f) != 0;
2350 if ac_fn_c_try_run
"$LINENO"; then :
2351 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2355 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2356 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status
$ac_retval
2363 } # ac_fn_c_compute_int
2364 cat >config.log
<<_ACEOF
2365 This file contains any messages produced by compilers while
2366 running configure, to aid debugging if configure makes a mistake.
2368 It was created by DHCP $as_me 4.3.4, which was
2369 generated by GNU Autoconf 2.69. Invocation command line was
2381 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2382 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2383 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2384 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2385 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2387 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2388 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2390 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2391 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2392 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2393 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2394 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2395 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2396 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir
=.
2405 $as_echo "PATH: $as_dir"
2421 # Keep a trace of the command line.
2422 # Strip out --no-create and --no-recursion so they do not pile up.
2423 # Strip out --silent because we don't want to record it for future runs.
2424 # Also quote any args containing shell meta-characters.
2425 # Make two passes to allow for proper duplicate-argument suppression.
2429 ac_must_keep_next
=false
2435 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2436 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2437 |
-silent |
--silent |
--silen |
--sile |
--sil)
2440 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2443 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2445 as_fn_append ac_configure_args1
" '$ac_arg'"
2446 if test $ac_must_keep_next = true
; then
2447 ac_must_keep_next
=false
# Got value, back to normal.
2450 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2451 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2452 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2453 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2454 case "$ac_configure_args0 " in
2455 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458 -* ) ac_must_keep_next
=true
;;
2461 as_fn_append ac_configure_args
" '$ac_arg'"
2466 { ac_configure_args0
=; unset ac_configure_args0
;}
2467 { ac_configure_args1
=; unset ac_configure_args1
;}
2469 # When interrupted or exit'd, cleanup temporary files, and complete
2470 # config.log. We remove comments because anyway the quotes in there
2471 # would cause problems or look ugly.
2472 # WARNING: Use '\'' to represent an apostrophe within the trap.
2473 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2474 trap 'exit_status=$?
2475 # Save into config.log some information that might help in debugging.
2479 $as_echo "## ---------------- ##
2480 ## Cache variables. ##
2481 ## ---------------- ##"
2483 # The following way of writing the cache mishandles newlines in values,
2485 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2486 eval ac_val=\$$ac_var
2490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2494 _ | IFS | as_nl) ;; #(
2495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2496 *) { eval $ac_var=; unset $ac_var;} ;;
2501 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2502 *${as_nl}ac_space=\ *)
2504 "s/'\''/'\''\\\\'\'''\''/g;
2505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2515 $as_echo "## ----------------- ##
2516 ## Output variables. ##
2517 ## ----------------- ##"
2519 for ac_var in $ac_subst_vars
2521 eval ac_val=\$$ac_var
2523 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525 $as_echo "$ac_var='\''$ac_val'\''"
2529 if test -n "$ac_subst_files"; then
2530 $as_echo "## ------------------- ##
2531 ## File substitutions. ##
2532 ## ------------------- ##"
2534 for ac_var
in $ac_subst_files
2536 eval ac_val
=\$
$ac_var
2538 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 $as_echo "$ac_var='\''$ac_val'\''"
2545 if test -s confdefs.h; then
2546 $as_echo "## ----------- ##
2553 test "$ac_signal" != 0 &&
2554 $as_echo "$as_me: caught signal $ac_signal"
2555 $as_echo "$as_me: exit $exit_status"
2557 rm -f core *.core core.conftest.* &&
2558 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2561 for ac_signal
in 1 2 13 15; do
2562 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2567 rm -f -r conftest
* confdefs.h
2569 $as_echo "/* confdefs.h */" > confdefs.h
2571 # Predefined preprocessor variables.
2573 cat >>confdefs.h
<<_ACEOF
2574 #define PACKAGE_NAME "$PACKAGE_NAME"
2577 cat >>confdefs.h
<<_ACEOF
2578 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2581 cat >>confdefs.h
<<_ACEOF
2582 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2585 cat >>confdefs.h
<<_ACEOF
2586 #define PACKAGE_STRING "$PACKAGE_STRING"
2589 cat >>confdefs.h
<<_ACEOF
2590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593 cat >>confdefs.h
<<_ACEOF
2594 #define PACKAGE_URL "$PACKAGE_URL"
2598 # Let the site file select an alternate cache file if it wants to.
2599 # Prefer an explicitly selected file to automatically selected ones.
2602 if test -n "$CONFIG_SITE"; then
2603 # We do not want a PATH search for config.site.
2604 case $CONFIG_SITE in #((
2605 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2606 */*) ac_site_file1
=$CONFIG_SITE;;
2607 *) ac_site_file1
=.
/$CONFIG_SITE;;
2609 elif test "x$prefix" != xNONE
; then
2610 ac_site_file1
=$prefix/share
/config.site
2611 ac_site_file2
=$prefix/etc
/config.site
2613 ac_site_file1
=$ac_default_prefix/share
/config.site
2614 ac_site_file2
=$ac_default_prefix/etc
/config.site
2616 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2618 test "x$ac_site_file" = xNONE
&& continue
2619 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2621 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2622 sed 's/^/| /' "$ac_site_file" >&5
2624 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626 as_fn_error $?
"failed to load site script $ac_site_file
2627 See \`config.log' for more details" "$LINENO" 5; }
2631 if test -r "$cache_file"; then
2632 # Some versions of bash will fail to source /dev/null (special files
2633 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2634 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2636 $as_echo "$as_me: loading cache $cache_file" >&6;}
2638 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2639 *) .
"./$cache_file";;
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2644 $as_echo "$as_me: creating cache $cache_file" >&6;}
2648 # Check that the precious variables saved in the cache have kept the same
2650 ac_cache_corrupted
=false
2651 for ac_var
in $ac_precious_vars; do
2652 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2653 eval ac_new_set
=\
$ac_env_${ac_var}_set
2654 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2655 eval ac_new_val
=\
$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted
=: ;;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted
=: ;;
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w
=`echo x $ac_old_val`
2670 ac_new_val_w
=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted
=:
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\
$ac_old_val
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2689 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg
=$ac_var=$ac_new_val ;;
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2710 ac_cpp
='$CPP $CPPFLAGS'
2711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2717 # we specify "foreign" to avoid having to have the GNU mandated files,
2718 # like AUTHORS, COPYING, and such
2719 am__api_version
='1.15'
2722 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723 if test -f "$ac_dir/install-sh"; then
2725 ac_install_sh
="$ac_aux_dir/install-sh -c"
2727 elif test -f "$ac_dir/install.sh"; then
2729 ac_install_sh
="$ac_aux_dir/install.sh -c"
2731 elif test -f "$ac_dir/shtool"; then
2733 ac_install_sh
="$ac_aux_dir/shtool install -c"
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750 # Find a good install program. We prefer a C program (faster),
2751 # so one script is as good as another. But avoid the broken or
2752 # incompatible versions:
2753 # SysV /etc/install, /usr/sbin/install
2754 # SunOS /usr/etc/install
2755 # IRIX /sbin/install
2757 # AmigaOS /C/install, which installs bootblocks on floppy discs
2758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2761 # OS/2's system install, which has a completely different semantic
2762 # ./install, which can be erroneously created by make from ./install.sh.
2763 # Reject install programs that cannot install multiple files.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2765 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2766 if test -z "$INSTALL"; then
2767 if ${ac_cv_path_install+:} false
; then :
2768 $as_echo_n "(cached) " >&6
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 # Account for people who put trailing slashes in PATH elements.
2776 case $as_dir/ in #((
2777 .
/ | .
// |
/[cC
]/* | \
2778 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2779 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2782 # OSF1 and SCO ODT 3.0 have their own names for install.
2783 # Don't use installbsd from OSF since it installs stuff as root
2785 for ac_prog
in ginstall scoinst
install; do
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2788 if test $ac_prog = install &&
2789 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2790 # AIX install. It has an incompatible calling convention.
2792 elif test $ac_prog = install &&
2793 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2794 # program-specific install script used by HP pwplus--don't use.
2797 rm -rf conftest.one conftest.two conftest.dir
2798 echo one
> conftest.one
2799 echo two
> conftest.two
2801 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2802 test -s conftest.one
&& test -s conftest.two
&&
2803 test -s conftest.dir
/conftest.one
&&
2804 test -s conftest.dir
/conftest.two
2806 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2819 rm -rf conftest.one conftest.two conftest.dir
2822 if test "${ac_cv_path_install+set}" = set; then
2823 INSTALL
=$ac_cv_path_install
2825 # As a last resort, use the slow shell script. Don't cache a
2826 # value for INSTALL within a source directory, because that will
2827 # break other packages using the cache if that directory is
2828 # removed, or if the value is a relative name.
2829 INSTALL
=$ac_install_sh
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2833 $as_echo "$INSTALL" >&6; }
2835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2836 # It thinks the first close brace ends the variable substitution.
2837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2841 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2844 $as_echo_n "checking whether build environment is sane... " >&6; }
2845 # Reject unsafe characters in $srcdir or the absolute working directory
2846 # name. Accept space and tab only in the latter.
2850 *[\\\"\
#\$\&\'\`$am_lf]*)
2851 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2854 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2855 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2858 # Do 'set' in a subshell so we don't clobber the current shell's
2859 # arguments. Must try -L first in case configure is actually a
2860 # symlink; some systems play weird games with the mod time of symlinks
2861 # (eg FreeBSD returns the mod time of the symlink's containing
2865 for am_try
in 1 2; do
2866 echo "timestamp, slept: $am_has_slept" > conftest.
file
2867 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2868 if test "$*" = "X"; then
2870 set X
`ls -t "$srcdir/configure" conftest.file`
2872 if test "$*" != "X $srcdir/configure conftest.file" \
2873 && test "$*" != "X conftest.file $srcdir/configure"; then
2875 # If neither matched, then we have a broken ls. This can happen
2876 # if, for instance, CONFIG_SHELL is bash and it inherits a
2877 # broken ls alias from the environment. This has actually
2878 # happened. Such a system could not be considered "sane".
2879 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2880 alias in your environment" "$LINENO" 5
2882 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2889 test "$2" = conftest.
file
2895 as_fn_error $?
"newly created file is older than distributed files!
2896 Check your system clock" "$LINENO" 5
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 # If we didn't sleep, we still need to ensure time stamps of config.status and
2901 # generated files are strictly newer.
2903 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2910 test "$program_prefix" != NONE
&&
2911 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2912 # Use a double $ so make ignores it.
2913 test "$program_suffix" != NONE
&&
2914 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2915 # Double any \ or $.
2916 # By default was `s,x,x', remove it if useless.
2917 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2918 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2920 # Expand $ac_aux_dir to an absolute path.
2921 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2923 if test x
"${MISSING+set}" != xset
; then
2926 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2928 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2931 # Use eval to expand $SHELL
2932 if eval "$MISSING --is-lightweight"; then
2933 am_missing_run
="$MISSING "
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2937 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2940 if test x
"${install_sh+set}" != xset
; then
2943 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2945 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2949 # Installed binaries are usually stripped using 'strip' when the user
2950 # run "make install-strip". However 'strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the 'STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no
; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false
; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir
=.
2970 for ac_exec_ext
in '' $ac_executable_extensions; do
2971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 STRIP
=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_STRIP"; then
2995 # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip
; ac_word
=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir
=.
3010 for ac_exec_ext
in '' $ac_executable_extensions; do
3011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_STRIP
="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031 if test "x$ac_ct_STRIP" = x
; then
3034 case $cross_compiling:$ac_tool_warned in
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned
=yes ;;
3043 STRIP
="$ac_cv_prog_STRIP"
3047 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051 if test -z "$MKDIR_P"; then
3052 if ${ac_cv_path_mkdir+:} false
; then :
3053 $as_echo_n "(cached) " >&6
3055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3056 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3059 test -z "$as_dir" && as_dir
=.
3060 for ac_prog
in mkdir gmkdir
; do
3061 for ac_exec_ext
in '' $ac_executable_extensions; do
3062 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3063 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064 'mkdir (GNU coreutils) '* | \
3065 'mkdir (coreutils) '* | \
3066 'mkdir (fileutils) '4.1*)
3067 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3077 test -d .
/--version && rmdir .
/--version
3078 if test "${ac_cv_path_mkdir+set}" = set; then
3079 MKDIR_P
="$ac_cv_path_mkdir -p"
3081 # As a last resort, use the slow shell script. Don't cache a
3082 # value for MKDIR_P within a source directory, because that will
3083 # break other packages using the cache if that directory is
3084 # removed, or if the value is a relative name.
3085 MKDIR_P
="$ac_install_sh -d"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089 $as_echo "$MKDIR_P" >&6; }
3091 for ac_prog
in gawk mawk nawk
awk
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy
$ac_prog; ac_word
=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_AWK+:} false
; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$AWK"; then
3101 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir
=.
3108 for ac_exec_ext
in '' $ac_executable_extensions; do
3109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_AWK
="$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$AWK"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123 $as_echo "$AWK" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$AWK" && break
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3138 $as_echo_n "(cached) " >&6
3140 cat >conftest.
make <<\_ACEOF
3143 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3145 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3150 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3154 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 SET_MAKE
="MAKE=${MAKE-make}"
3164 rm -rf .tst
2>/dev
/null
3165 mkdir .tst
2>/dev
/null
3166 if test -d .tst
; then
3171 rmdir .tst
2>/dev
/null
3173 # Check whether --enable-silent-rules was given.
3174 if test "${enable_silent_rules+set}" = set; then :
3175 enableval
=$enable_silent_rules;
3178 case $enable_silent_rules in # (((
3179 yes) AM_DEFAULT_VERBOSITY
=0;;
3180 no
) AM_DEFAULT_VERBOSITY
=1;;
3181 *) AM_DEFAULT_VERBOSITY
=1;;
3183 am_make
=${MAKE-make}
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186 if ${am_cv_make_support_nested_variables+:} false
; then :
3187 $as_echo_n "(cached) " >&6
3189 if $as_echo 'TRUE=$(BAR$(V))
3195 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3196 am_cv_make_support_nested_variables
=yes
3198 am_cv_make_support_nested_variables
=no
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3203 if test $am_cv_make_support_nested_variables = yes; then
3205 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3207 AM_V
=$AM_DEFAULT_VERBOSITY
3208 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3212 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214 # is not polluted with repeated "-I."
3215 am__isrc
=' -I$(srcdir)'
3216 # test to see if srcdir already configured
3217 if test -f $srcdir/config.status
; then
3218 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3222 # test whether we have cygpath
3223 if test -z "$CYGPATH_W"; then
3224 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3225 CYGPATH_W
='cygpath -w'
3232 # Define the identity of the package.
3237 cat >>confdefs.h
<<_ACEOF
3238 #define PACKAGE "$PACKAGE"
3242 cat >>confdefs.h
<<_ACEOF
3243 #define VERSION "$VERSION"
3246 # Some tools Automake needs.
3248 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3251 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3254 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3257 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3260 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3262 # For better backward compatibility. To be removed once Automake 1.9.x
3263 # dies out for good. For more background, see:
3264 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3265 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3266 mkdir_p
='$(MKDIR_P)'
3268 # We need awk for the "check" target (and possibly the TAP driver). The
3269 # system "awk" is bad on some platforms.
3270 # Always define AMTAR for backward compatibility. Yes, it's still used
3271 # in the wild :-( We should find a proper way to deprecate it ...
3275 # We'll loop over all known methods to create a tar archive until one works.
3276 _am_tools
='gnutar pax cpio none'
3278 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3285 # POSIX will say in a future version that running "rm -f" with no argument
3286 # is OK; and we want to be able to make that assumption in our Makefile
3287 # recipes. So use an aggressive probe to check that the usage we want is
3288 # actually supported "in the wild" to an acceptable degree.
3289 # See automake bug#10828.
3290 # To make any issue more visible, cause the running configure to be aborted
3291 # by default if the 'rm' program in use doesn't match our expectations; the
3292 # user can still override this though.
3293 if rm -f && rm -fr && rm -rf; then : OK
; else
3297 Your 'rm' program seems unable to run without file operands specified
3298 on the command line, even when the '-f' option is present. This is contrary
3299 to the behaviour of most rm programs out there, and not conforming with
3300 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3302 Please tell bug-automake@gnu.org about your system, including the value
3303 of your $PATH and any error possibly output before this message. This
3304 can help us improve future automake versions.
3307 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3308 echo 'Configuration will proceed anyway, since you have set the' >&2
3309 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3313 Aborting the configuration process, to ensure you take notice of the issue.
3315 You can download and install GNU coreutils to get an 'rm' implementation
3316 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3318 If you want to complete the configuration process using your problematic
3319 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3320 to "yes", and re-run configure.
3323 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3328 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3329 # the configure and makefiles. Without it users doing things that
3330 # change the timestamps on the code, like checking it into a cvs
3331 # tree, could trigger a rebuild of the infrastructure files which
3332 # might fail if they don't have the correct tools.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3335 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3336 # Check whether --enable-maintainer-mode was given.
3337 if test "${enable_maintainer_mode+set}" = set; then :
3338 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3340 USE_MAINTAINER_MODE
=no
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3344 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3345 if test $USE_MAINTAINER_MODE = yes; then
3346 MAINTAINER_MODE_TRUE
=
3347 MAINTAINER_MODE_FALSE
='#'
3349 MAINTAINER_MODE_TRUE
='#'
3350 MAINTAINER_MODE_FALSE
=
3353 MAINT
=$MAINTAINER_MODE_TRUE
3357 # Make sure we can run config.sub.
3358 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3359 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3362 $as_echo_n "checking build system type... " >&6; }
3363 if ${ac_cv_build+:} false
; then :
3364 $as_echo_n "(cached) " >&6
3366 ac_build_alias
=$build_alias
3367 test "x$ac_build_alias" = x
&&
3368 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3369 test "x$ac_build_alias" = x
&&
3370 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3371 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3372 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3376 $as_echo "$ac_cv_build" >&6; }
3377 case $ac_cv_build in
3379 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3382 ac_save_IFS
=$IFS; IFS
='-'
3388 # Remember, the first character of IFS is used to create $*,
3389 # except with old shells:
3392 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3396 $as_echo_n "checking host system type... " >&6; }
3397 if ${ac_cv_host+:} false
; then :
3398 $as_echo_n "(cached) " >&6
3400 if test "x$host_alias" = x
; then
3401 ac_cv_host
=$ac_cv_build
3403 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3404 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3409 $as_echo "$ac_cv_host" >&6; }
3412 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3415 ac_save_IFS
=$IFS; IFS
='-'
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3425 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3429 # We want to turn on warnings if we are using gcc and the user did
3430 # not specify CFLAGS. The autoconf check for the C compiler sets the
3431 # CFLAGS if gcc is used, so we will save it before we run that check.
3432 SAVE_CFLAGS
="$CFLAGS"
3434 # Now find our C compiler.
3436 ac_cpp
='$CPP $CPPFLAGS'
3437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3442 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_CC+:} false
; then :
3446 $as_echo_n "(cached) " >&6
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC
="$CC" # Let the user override the test.
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 for ac_exec_ext
in '' $ac_executable_extensions; do
3457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3479 if test -z "$ac_cv_prog_CC"; then
3481 # Extract the first word of "gcc", so it can be a program name with args.
3482 set dummy gcc
; ac_word
=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3486 $as_echo_n "(cached) " >&6
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir
=.
3496 for ac_exec_ext
in '' $ac_executable_extensions; do
3497 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_CC
="gcc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511 $as_echo "$ac_ct_CC" >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3517 if test "x$ac_ct_CC" = x
; then
3520 case $cross_compiling:$ac_tool_warned in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned
=yes ;;
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3535 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_CC+:} false
; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC
="$CC" # Let the user override the test.
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_exec_ext
in '' $ac_executable_extensions; do
3550 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3573 if test -z "$CC"; then
3574 # Extract the first word of "cc", so it can be a program name with args.
3575 set dummy cc
; ac_word
=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false
; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC
="$CC" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3593 ac_prog_rejected
=yes
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 if test $ac_prog_rejected = yes; then
3605 # We found a bogon in the path, so make sure we never use it.
3606 set dummy
$ac_cv_prog_CC
3608 if test $# != 0; then
3609 # We chose a different compiler from the bogus one.
3610 # However, it has the same basename, so the bogon will be chosen
3611 # first if we set CC to just the basename; use the full file name.
3613 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 for ac_prog
in cl.exe
3633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3634 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false
; then :
3638 $as_echo_n "(cached) " >&6
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC
="$CC" # Let the user override the test.
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir
=.
3648 for ac_exec_ext
in '' $ac_executable_extensions; do
3649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3670 test -n "$CC" && break
3673 if test -z "$CC"; then
3675 for ac_prog
in cl.exe
3677 # Extract the first word of "$ac_prog", so it can be a program name with args.
3678 set dummy
$ac_prog; ac_word
=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3682 $as_echo_n "(cached) " >&6
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir
=.
3692 for ac_exec_ext
in '' $ac_executable_extensions; do
3693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_ac_ct_CC
="$ac_prog"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3705 if test -n "$ac_ct_CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3707 $as_echo "$ac_ct_CC" >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3714 test -n "$ac_ct_CC" && break
3717 if test "x$ac_ct_CC" = x
; then
3720 case $cross_compiling:$ac_tool_warned in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724 ac_tool_warned
=yes ;;
3733 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $?
"no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details" "$LINENO" 5; }
3738 # Provide some information about the compiler.
3739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3742 for ac_option
in --version -v -V -qversion; do
3743 { { ac_try
="$ac_compiler $ac_option >&5"
3745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3752 if test -s conftest.err; then
3754 ... rest of stderr output deleted ...
3755 10q' conftest.err >conftest.er1
3756 cat conftest.er1 >&5
3758 rm -f conftest.er1 conftest.err
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3774 ac_clean_files_save=$ac_clean_files
3775 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3776 # Try to create an executable without -o first, disregard a.out.
3777 # It will help us diagnose broken compilers, and finding out an intuition
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3783 # The possible output files:
3784 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3787 for ac_file in $ac_files
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3796 if { { ac_try="$ac_link_default"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link_default") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3810 # so that the user can short-circuit this test for compilers unknown to
3812 for ac_file
in $ac_files ''
3814 test -f "$ac_file" ||
continue
3816 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3819 # We found the default executable, but exeext='' is most
3823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3825 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827 # We set ac_cv_exeext here because the later test for it is not
3828 # safe: cross compilers may not add the suffix if given an `-o'
3829 # argument, so we may need to know it at that point already.
3830 # Even if this section looks crufty: it has the advantage of
3837 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3842 if test -z "$ac_file"; then :
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.
$ac_ext >&5
3848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 as_fn_error
77 "C compiler cannot create executables
3851 See \`config.log' for more details" "$LINENO" 5; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3859 $as_echo "$ac_file" >&6; }
3860 ac_exeext
=$ac_cv_exeext
3862 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3863 ac_clean_files
=$ac_clean_files_save
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3865 $as_echo_n "checking for suffix of executables... " >&6; }
3866 if { { ac_try
="$ac_link"
3868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3878 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3879 # work properly (i.e., refer to `conftest.exe'), while it won't with
3881 for ac_file
in conftest.exe conftest conftest.
*; do
3882 test -f "$ac_file" ||
continue
3884 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3885 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3894 See \`config.log' for more details" "$LINENO" 5; }
3896 rm -f conftest conftest
$ac_cv_exeext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3898 $as_echo "$ac_cv_exeext" >&6; }
3900 rm -f conftest.
$ac_ext
3901 EXEEXT
=$ac_cv_exeext
3903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3909 FILE *f = fopen ("conftest.out", "w");
3910 return ferror (f) || fclose (f) != 0;
3916 ac_clean_files
="$ac_clean_files conftest.out"
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3920 $as_echo_n "checking whether we are cross compiling... " >&6; }
3921 if test "$cross_compiling" != yes; then
3922 { { ac_try
="$ac_link"
3924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3933 if { ac_try='./conftest$ac_cv_exeext'
3934 { { case "(($ac_try" in
3935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3936 *) ac_try_echo
=$ac_try;;
3938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_try") 2>&5
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; }; then
3946 if test "$cross_compiling" = maybe
; then
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $?
"cannot run C compiled programs.
3952 If you meant to cross compile, use \`--host'.
3953 See \`config.log' for more details" "$LINENO" 5; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3961 ac_clean_files
=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3963 $as_echo_n "checking for suffix of object files... " >&6; }
3964 if ${ac_cv_objext+:} false
; then :
3965 $as_echo_n "(cached) " >&6
3967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3978 rm -f conftest.o conftest.obj
3979 if { { ac_try
="$ac_compile"
3981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compile") 2>&5
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then :
3990 for ac_file in conftest.o conftest.obj conftest.*; do
3991 test -f "$ac_file" || continue;
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4005 See \
`config.log' for more details" "$LINENO" 5; }
4007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4010 $as_echo "$ac_cv_objext" >&6; }
4011 OBJEXT=$ac_cv_objext
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4015 if ${ac_cv_c_compiler_gnu+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043 if test $ac_compiler_gnu = yes; then
4048 ac_test_CFLAGS=${CFLAGS+set}
4049 ac_save_CFLAGS=$CFLAGS
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4052 if ${ac_cv_prog_cc_g+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4122 if test "$GCC" = yes; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if ${ac_cv_prog_cc_c89+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_cv_prog_cc_c89=no
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4141 struct buf { int x; };
4142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4143 static char *e (p, i)
4149 static char *f (char * (*g) (char **, int), char **p, ...)
4154 s = g (p, va_arg (v,int));
4159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4160 function prototypes and stuff, but not '\xHH' hex character constants.
4161 These don't provoke an error unfortunately, instead are silently treated
4162 as 'x'. The following induces an error, until -std is added to get
4163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4164 array size at least. It's necessary to write '\x00'==0 to get something
4165 that's true only with -std. */
4166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4169 inside strings and character constants. */
4171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4173 int test (int i, double x);
4174 struct s1 {int (*f) (int a);};
4175 struct s2 {int (*f) (double a);};
4176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190 CC="$ac_save_CC $ac_arg"
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_c89=$ac_arg
4194 rm -f core conftest.err conftest.$ac_objext
4195 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197 rm -f conftest.$ac_ext
4202 case "x$ac_cv_prog_cc_c89" in
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4205 $as_echo "none needed" >&6; } ;;
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 $as_echo "unsupported" >&6; } ;;
4210 CC="$CC $ac_cv_prog_cc_c89"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4214 if test "x$ac_cv_prog_cc_c89" != xno; then :
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4230 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4231 if ${am_cv_prog_cc_c_o+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4245 # Make sure it works both with $CC and with simple cc.
4246 # Following AC_PROG_CC_C_O, we do the test twice because some
4247 # compilers refuse to overwrite an existing .o file with -o,
4248 # though they will create one.
4249 am_cv_prog_cc_c_o=yes
4251 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4252 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } \
4256 && test -f conftest2.$ac_objext; then
4259 am_cv_prog_cc_c_o=no
4263 rm -f core conftest*
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4267 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4268 if test "$am_cv_prog_cc_c_o" != yes; then
4269 # Losing compiler, so override with the script.
4270 # FIXME: It is wrong to rewrite CC.
4271 # But if we don't then we get into trouble of one sort or another.
4272 # A longer-term fix would be to have automake use am__CC in this case,
4273 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4274 CC="$am_aux_dir/compile $CC"
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 DEPDIR="${am__leading_dot}deps"
4284 ac_config_commands="$ac_config_commands depfiles"
4287 am_make=${MAKE-make}
4288 cat > confinc << 'END'
4290 @echo this is the am__doit target
4293 # If we don't find an include directive, just comment out the code.
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4295 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4299 # First try GNU make style include.
4300 echo "include confinc" > confmf
4301 # Ignore all kinds of additional output from 'make'.
4302 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4303 *the\ am__doit\ target*)
4309 # Now try BSD make style include.
4310 if test "$am__include" = "#"; then
4311 echo '.include "confinc"' > confmf
4312 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4313 *the\ am__doit\ target*)
4314 am__include=.include
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4323 $as_echo "$_am_result" >&6; }
4324 rm -f confinc confmf
4326 # Check whether --enable-dependency-tracking was given.
4327 if test "${enable_dependency_tracking+set}" = set; then :
4328 enableval=$enable_dependency_tracking;
4331 if test "x$enable_dependency_tracking" != xno; then
4332 am_depcomp="$ac_aux_dir/depcomp"
4336 if test "x$enable_dependency_tracking" != xno; then
4346 depcc="$CC" am_compiler_list=
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4349 $as_echo_n "checking dependency style of $depcc... " >&6; }
4350 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4354 # We make a subdir and do the tests there. Otherwise we can end up
4355 # making bogus files that we don't know about and never remove. For
4356 # instance it was reported that on HP-UX the gcc test will end up
4357 # making a dummy file named 'D' -- because '-MD' means "put the output
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4378 case " $depcc " in #(
4379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4382 for depmode in $am_compiler_list; do
4383 # Setup a source with many dependencies, because some compilers
4384 # like to wrap large dependency lists on column 80 (with \), and
4385 # we should not choose a depcomp mode which is confused by this.
4387 # We need to recreate these files for each test, as the compiler may
4388 # overwrite some of them when testing with obscure command lines.
4389 # This happens at least with the AIX C compiler.
4391 for i in 1 2 3 4 5 6; do
4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4394 # Solaris 10 /bin/sh.
4395 echo '/* dummy */' > sub/conftst$i.h
4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4399 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle '-M -o', and we need to detect this. Also, some Intel
4402 # versions had trouble with output in subdirs.
4403 am__obj=sub/conftest.${OBJEXT-o}
4404 am__minus_obj="-o $am__obj"
4407 # This depmode causes a compiler race in universal mode.
4408 test "$am__universal" = false || continue
4411 # After this tag, mechanisms are not by side-effect, so they'll
4412 # only be used when explicitly requested.
4413 if test "x$enable_dependency_tracking" = xyes; then
4419 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4420 # This compiler won't grok '-c -o', but also, the minuso test has
4421 # not run yet. These depmodes are late enough in the game, and
4422 # so weak that their functioning should not be impacted.
4423 am__obj=conftest.${OBJEXT-o}
4428 if depmode=$depmode \
4429 source=sub/conftest.c object=$am__obj \
4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432 >/dev/null 2>conftest.err &&
4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437 # icc doesn't choke on unknown options, it will just issue warnings
4438 # or remarks (even with -Werror). So we grep stderr for any message
4439 # that says an option was ignored or not supported.
4440 # When given -MP, icc 7.0 and 7.1 complain thusly:
4441 # icc: Command line warning: ignoring option '-M'; no argument required
4442 # The diagnosis changed in icc 8.0:
4443 # icc: Command line remark: option '-MP' not supported
4444 if (grep 'ignoring option' conftest.err ||
4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446 am_cv_CC_dependencies_compiler_type=$depmode
4455 am_cv_CC_dependencies_compiler_type=none
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464 test "x$enable_dependency_tracking" != xno \
4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4467 am__fastdepCC_FALSE='#'
4469 am__fastdepCC_TRUE='#'
4470 am__fastdepCC_FALSE=
4475 # Suppress warnings about --datarootdir
4478 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4479 # user did not specify any flags. Add warnings in this case.
4480 if test "$GCC" = "yes"; then
4481 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4482 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4486 # We can have some flags to pass to bind configure
4488 if test "$cross_compiling" = "yes"; then
4489 BINDCONFIG="--host=$host"
4491 # Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..."
4492 # and as there can be a space inside an argument some magic is required.
4493 # This sets $1 ... $N to my_configure_args, arg1 ... argN
4494 eval "set my_configure_args $ac_configure_args"
4495 # remove my_configure_args, i.e., the guard against empty $ac_configure_args
4497 # iterate on arguments and copying 'arg' when it begins by an upper case
4501 [A-Z]*) BINDCONFIG="$BINDCONFIG '$a'" ;;
4506 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4507 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4508 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4509 # Socket API were designed to be used but we have to live with it.
4510 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4518 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4519 # On Suns, sometimes $CPP names a directory.
4520 if test -n "$CPP" && test -d "$CPP"; then
4523 if test -z "$CPP"; then
4524 if ${ac_cv_prog_CPP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 # Double quotes because CPP needs to be expanded
4528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4531 for ac_c_preproc_warn_flag in '' yes
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4542 # include <limits.h>
4544 # include <assert.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4551 # Broken: fails on valid input.
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <ac_nonexistent.h>
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4566 # Passes both tests.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.
$ac_ext
4575 if $ac_preproc_ok; then :
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4588 $as_echo "$CPP" >&6; }
4590 for ac_c_preproc_warn_flag
in '' yes
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4601 # include <limits.h>
4603 # include <assert.h>
4607 if ac_fn_c_try_cpp
"$LINENO"; then :
4610 # Broken: fails on valid input.
4613 rm -f conftest.err conftest.i conftest.
$ac_ext
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4621 if ac_fn_c_try_cpp
"$LINENO"; then :
4622 # Broken: success on invalid input.
4625 # Passes both tests.
4629 rm -f conftest.err conftest.i conftest.
$ac_ext
4632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633 rm -f conftest.i conftest.err conftest.
$ac_ext
4634 if $ac_preproc_ok; then :
4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4640 See \`config.log' for more details" "$LINENO" 5; }
4644 ac_cpp
='$CPP $CPPFLAGS'
4645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4652 if ${ac_cv_path_GREP+:} false
; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -z "$GREP"; then
4656 ac_path_GREP_found
=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4662 test -z "$as_dir" && as_dir
=.
4663 for ac_prog
in grep ggrep
; do
4664 for ac_exec_ext
in '' $ac_executable_extensions; do
4665 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p
"$ac_path_GREP" ||
continue
4667 # Check for GNU ac_path_GREP and select it if it is found.
4668 # Check for GNU $ac_path_GREP
4669 case `"$ac_path_GREP" --version 2>&1` in
4671 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4674 $as_echo_n 0123456789 >"conftest.in"
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo 'GREP' >> "conftest.nl"
4681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4683 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_GREP
="$ac_path_GREP"
4687 ac_path_GREP_max
=$ac_count
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4695 $ac_path_GREP_found && break 3
4700 if test -z "$ac_cv_path_GREP"; then
4701 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 ac_cv_path_GREP
=$GREP
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4709 $as_echo "$ac_cv_path_GREP" >&6; }
4710 GREP
="$ac_cv_path_GREP"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4714 $as_echo_n "checking for egrep... " >&6; }
4715 if ${ac_cv_path_EGREP+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4719 then ac_cv_path_EGREP
="$GREP -E"
4721 if test -z "$EGREP"; then
4722 ac_path_EGREP_found
=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4728 test -z "$as_dir" && as_dir
=.
4729 for ac_prog
in egrep; do
4730 for ac_exec_ext
in '' $ac_executable_extensions; do
4731 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4733 # Check for GNU ac_path_EGREP and select it if it is found.
4734 # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4737 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4740 $as_echo_n 0123456789 >"conftest.in"
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'EGREP' >> "conftest.nl"
4747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4748 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4749 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_EGREP
="$ac_path_EGREP"
4753 ac_path_EGREP_max
=$ac_count
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4758 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4761 $ac_path_EGREP_found && break 3
4766 if test -z "$ac_cv_path_EGREP"; then
4767 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4770 ac_cv_path_EGREP
=$EGREP
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4776 $as_echo "$ac_cv_path_EGREP" >&6; }
4777 EGREP
="$ac_cv_path_EGREP"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4781 $as_echo_n "checking for ANSI C header files... " >&6; }
4782 if ${ac_cv_header_stdc+:} false
; then :
4783 $as_echo_n "(cached) " >&6
4785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4800 if ac_fn_c_try_compile
"$LINENO"; then :
4801 ac_cv_header_stdc
=yes
4803 ac_cv_header_stdc
=no
4805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 if test $ac_cv_header_stdc = yes; then
4808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 $EGREP "memchr" >/dev
/null
2>&1; then :
4818 ac_cv_header_stdc
=no
4824 if test $ac_cv_header_stdc = yes; then
4825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "free" >/dev
/null
2>&1; then :
4835 ac_cv_header_stdc
=no
4841 if test $ac_cv_header_stdc = yes; then
4842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4843 if test "$cross_compiling" = yes; then :
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 #if ((' ' & 0x0FF) == 0x020)
4851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4854 # define ISLOWER(c) \
4855 (('a' <= (c) && (c) <= 'i') \
4856 || ('j' <= (c) && (c) <= 'r') \
4857 || ('s' <= (c) && (c) <= 'z'))
4858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4866 for (i = 0; i < 256; i++)
4867 if (XOR (islower (i), ISLOWER (i))
4868 || toupper (i) != TOUPPER (i))
4873 if ac_fn_c_try_run
"$LINENO"; then :
4876 ac_cv_header_stdc
=no
4878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4885 $as_echo "$ac_cv_header_stdc" >&6; }
4886 if test $ac_cv_header_stdc = yes; then
4888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4893 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4894 inttypes.h stdint.h unistd.h
4896 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4897 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4899 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4900 cat >>confdefs.h
<<_ACEOF
4901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4911 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4918 if test "$MINIX" = yes; then
4920 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4923 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4926 $as_echo "#define _MINIX 1" >>confdefs.h
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4932 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4933 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4939 # define __EXTENSIONS__ 1
4940 $ac_includes_default
4949 if ac_fn_c_try_compile
"$LINENO"; then :
4950 ac_cv_safe_to_define___extensions__
=yes
4952 ac_cv_safe_to_define___extensions__
=no
4954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4957 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4958 test $ac_cv_safe_to_define___extensions__ = yes &&
4959 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4961 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4963 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4965 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4967 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4973 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_RANLIB+:} false
; then :
4977 $as_echo_n "(cached) " >&6
4979 if test -n "$RANLIB"; then
4980 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4986 test -z "$as_dir" && as_dir
=.
4987 for ac_exec_ext
in '' $ac_executable_extensions; do
4988 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 RANLIB
=$ac_cv_prog_RANLIB
5000 if test -n "$RANLIB"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5002 $as_echo "$RANLIB" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5010 if test -z "$ac_cv_prog_RANLIB"; then
5011 ac_ct_RANLIB
=$RANLIB
5012 # Extract the first word of "ranlib", so it can be a program name with args.
5013 set dummy ranlib
; ac_word
=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$ac_ct_RANLIB"; then
5020 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir
=.
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5040 if test -n "$ac_ct_RANLIB"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5042 $as_echo "$ac_ct_RANLIB" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5048 if test "x$ac_ct_RANLIB" = x
; then
5051 case $cross_compiling:$ac_tool_warned in
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055 ac_tool_warned
=yes ;;
5057 RANLIB
=$ac_ct_RANLIB
5060 RANLIB
="$ac_cv_prog_RANLIB"
5064 # Extract the first word of "ar", so it can be a program name with args.
5065 set dummy
ar; ac_word
=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_AR+:} false
; then :
5069 $as_echo_n "(cached) " >&6
5073 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 if test -n "$AR"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5097 $as_echo "$AR" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5106 if test "X$AR" = "X"; then
5108 ar program not found. Please fix your PATH to include the directory in
5109 which ar resides, or set AR in the environment with the full path to ar." "$LINENO" 5
5112 ac_config_headers
="$ac_config_headers includes/config.h"
5115 # we sometimes need to know byte order for building packets
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5117 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5118 if ${ac_cv_c_bigendian+:} false
; then :
5119 $as_echo_n "(cached) " >&6
5121 ac_cv_c_bigendian
=unknown
5122 # See if we're dealing with a universal compiler.
5123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 #ifndef __APPLE_CC__
5126 not a universal capable compiler
5131 if ac_fn_c_try_compile
"$LINENO"; then :
5133 # Check for potential -arch flags. It is not universal unless
5134 # there are at least two -arch flags with different values.
5137 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5138 if test -n "$ac_prev"; then
5140 i?
86 | x86_64 | ppc | ppc64
)
5141 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5144 ac_cv_c_bigendian
=universal
5150 elif test "x$ac_word" = "x-arch"; then
5155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5156 if test $ac_cv_c_bigendian = unknown
; then
5157 # See if sys/param.h defines the BYTE_ORDER macro.
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 #include <sys/param.h>
5166 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5167 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5176 if ac_fn_c_try_compile
"$LINENO"; then :
5177 # It does; now see whether it defined to BIG_ENDIAN or not.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <sys/types.h>
5181 #include <sys/param.h>
5186 #if BYTE_ORDER != BIG_ENDIAN
5194 if ac_fn_c_try_compile
"$LINENO"; then :
5195 ac_cv_c_bigendian
=yes
5197 ac_cv_c_bigendian
=no
5199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5203 if test $ac_cv_c_bigendian = unknown
; then
5204 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5212 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5220 if ac_fn_c_try_compile
"$LINENO"; then :
5221 # It does; now see whether it defined to _BIG_ENDIAN or not.
5222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5237 if ac_fn_c_try_compile
"$LINENO"; then :
5238 ac_cv_c_bigendian
=yes
5240 ac_cv_c_bigendian
=no
5242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5246 if test $ac_cv_c_bigendian = unknown
; then
5247 # Compile a test program.
5248 if test "$cross_compiling" = yes; then :
5249 # Try to guess by grepping values from an object file.
5250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 short int ascii_mm[] =
5253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5254 short int ascii_ii[] =
5255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5256 int use_ascii (int i) {
5257 return ascii_mm[i] + ascii_ii[i];
5259 short int ebcdic_ii[] =
5260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5261 short int ebcdic_mm[] =
5262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5263 int use_ebcdic (int i) {
5264 return ebcdic_mm[i] + ebcdic_ii[i];
5271 return use_ascii (foo) == use_ebcdic (foo);
5276 if ac_fn_c_try_compile
"$LINENO"; then :
5277 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5278 ac_cv_c_bigendian
=yes
5280 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5281 if test "$ac_cv_c_bigendian" = unknown
; then
5282 ac_cv_c_bigendian
=no
5284 # finding both strings is unlikely to happen, but who knows?
5285 ac_cv_c_bigendian
=unknown
5289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 $ac_includes_default
5298 /* Are we little or big endian? From Harbison&Steele. */
5302 char c[sizeof (long int)];
5305 return u.c[sizeof (long int) - 1] == 1;
5311 if ac_fn_c_try_run
"$LINENO"; then :
5312 ac_cv_c_bigendian
=no
5314 ac_cv_c_bigendian
=yes
5316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5323 $as_echo "$ac_cv_c_bigendian" >&6; }
5324 case $ac_cv_c_bigendian in #(
5326 byte_order
=BIG_ENDIAN
5329 byte_order
=LITTLE_ENDIAN
5333 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5337 as_fn_error $?
"unknown endianness
5338 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5342 cat >>confdefs.h
<<_ACEOF
5343 #define DHCP_BYTE_ORDER $byte_order
5347 # Optional compile-time DEBUGging.
5348 # Check whether --enable-debug was given.
5349 if test "${enable_debug+set}" = set; then :
5350 enableval
=$enable_debug; case "${enableval}" in
5351 yes) enable_debug
=yes
5353 $as_echo "#define DEBUG 1" >>confdefs.h
5355 # Just override CFLAGS totally to remove optimization.
5357 no
) enable_debug
=no
;;
5358 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5365 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5366 # but I don't want to pollute the --help space.
5368 #/* #define DEBUG_TOKENS */
5369 #/* #define DEBUG_PACKET */
5370 #/* #define DEBUG_EXPRESSIONS */
5371 #/* #define DEBUG_FIND_LEASE */
5372 #/* #define DEBUG_EXPRESSION_PARSE */
5373 #/* #define DEBUG_CLASS_MATCHING */
5374 #/* #define DEBUG_MEMORY_LEAKAGE */
5375 #/* #define DEBUG_MALLOC_POOL */
5376 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5377 #/* #define DEBUG_RC_HISTORY */
5378 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5379 #/* #define RC_HISTORY_MAX 10240 */
5380 #/* #define POINTER_DEBUG */
5381 #/* #define DEBUG_FAILOVER_MESSAGES */
5382 #/* #define DEBUG_FAILOVER_TIMING */
5383 #/* #define DEBUG_DUMP_ALL_LEASES */
5385 # Failover optional compile-time feature.
5386 # Check whether --enable-failover was given.
5387 if test "${enable_failover+set}" = set; then :
5388 enableval
=$enable_failover;
5391 # Failover is on by default, so define if it is not explicitly disabled.
5392 if test "$enable_failover" != "no"; then
5393 enable_failover
="yes"
5395 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5399 # execute() support.
5400 # Check whether --enable-execute was given.
5401 if test "${enable_execute+set}" = set; then :
5402 enableval
=$enable_execute;
5405 # execute() is on by default, so define if it is not explicitly disabled.
5406 if test "$enable_execute" != "no" ; then
5407 enable_execute
="yes"
5409 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5413 # Server tracing support.
5414 # Check whether --enable-tracing was given.
5415 if test "${enable_tracing+set}" = set; then :
5416 enableval
=$enable_tracing;
5419 # tracing is on by default, so define if it is not explicitly disabled.
5420 if test "$enable_tracing" != "no" ; then
5422 $as_echo "#define TRACING 1" >>confdefs.h
5426 # Delayed-ack feature support (experimental).
5427 # Check whether --enable-delayed_ack was given.
5428 if test "${enable_delayed_ack+set}" = set; then :
5429 enableval
=$enable_delayed_ack;
5432 if test "$enable_delayed_ack" = "yes"; then
5434 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5437 enable_delayed_ack
="no"
5440 # DHCPv6 optional compile-time feature.
5441 # Check whether --enable-dhcpv6 was given.
5442 if test "${enable_dhcpv6+set}" = set; then :
5443 enableval
=$enable_dhcpv6;
5446 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5447 if test "$enable_dhcpv6" != "no"; then
5450 $as_echo "#define DHCPv6 1" >>confdefs.h
5454 # DHCPv4o6 optional compile-time feature.
5455 # Check whether --enable-dhcpv4o6 was given.
5456 if test "${enable_dhcpv4o6+set}" = set; then :
5457 enableval
=$enable_dhcpv4o6;
5460 # DHCPv4o6 is off by default, so define if it is explicitly enabled.
5461 if test "$enable_dhcpv4o6" = "yes"; then
5462 # DHCPv4o6 requires DHCPv6
5463 if test "$enable_dhcpv6" = "no"; then
5464 as_fn_error $?
"dhcpv4o6 requires dhcpv6" "$LINENO" 5
5466 # DHCPv4o6 is not yet compatible with delayed-ack
5467 if test "$enable_delayed_ack" = "yes"; then
5468 as_fn_error $?
"dhcpv4o6 is not compatible with delayed-ack" "$LINENO" 5
5471 $as_echo "#define DHCP4o6 1" >>confdefs.h
5475 # PARANOIA is off by default (until we can test it with all features)
5476 # Check whether --enable-paranoia was given.
5477 if test "${enable_paranoia+set}" = set; then :
5478 enableval
=$enable_paranoia;
5481 # Check whether --enable-early_chroot was given.
5482 if test "${enable_early_chroot+set}" = set; then :
5483 enableval
=$enable_early_chroot;
5486 # If someone enables early chroot, but does not enable paranoia, do so for
5488 if test "$enable_paranoia" != "yes" && \
5489 test "$enable_early_chroot" = "yes" ; then
5490 enable_paranoia
="yes"
5493 if test "$enable_paranoia" = "yes" ; then
5495 $as_echo "#define PARANOIA 1" >>confdefs.h
5498 if test "$enable_early_chroot" = "yes" ; then
5500 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5504 # Check whether --enable-ipv4_pktinfo was given.
5505 if test "${enable_ipv4_pktinfo+set}" = set; then :
5506 enableval
=$enable_ipv4_pktinfo;
5510 if test "$enable_ipv4_pktinfo" = "yes"; then
5512 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5516 # Check whether --enable-use_sockets was given.
5517 if test "${enable_use_sockets+set}" = set; then :
5518 enableval
=$enable_use_sockets;
5522 if test "$enable_use_sockets" = "yes"; then
5524 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5528 # Try to hnadle incorrect byte order for secs field
5529 # This is off by default
5530 # Check whether --enable-secs_byteorder was given.
5531 if test "${enable_secs_byteorder+set}" = set; then :
5532 enableval
=$enable_secs_byteorder;
5536 if test "$enable_secs_byteorder" = "yes" ; then
5538 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5542 # Include the PID in the log messages. This is useful when there may
5543 # be multiple instances of a program.
5544 # This is off by default
5545 # Check whether --enable-log_pid was given.
5546 if test "${enable_log_pid+set}" = set; then :
5547 enableval
=$enable_log_pid;
5550 if test "$enable_log_pid" = "yes" ; then
5552 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5556 # Allow for binary search when inserting v4 leases into queues
5557 # Check whether --enable-binary_leases was given.
5558 if test "${enable_binary_leases+set}" = set; then :
5559 enableval
=$enable_binary_leases;
5562 # binary_leases is off by default.
5563 if test "$enable_binary_leases" = "yes"; then
5565 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5568 enable_binary_leases
="no"
5573 DISTCHECK_ATF_CONFIGURE_FLAG
=
5576 # Check whether --with-atf was given.
5577 if test "${with_atf+set}" = set; then :
5578 withval
=$with_atf; atf_path
="$withval"
5581 if test "$atf_path" = "bind"; then
5589 if test "$atf_path" = "bind" ; then
5590 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=bind"
5592 atf_path
="\${top_srcdir}/bind/atf"
5593 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5594 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5595 ATF_BIN
=`cd $srcdir; pwd`/bind
/atf
/bin
5599 BINDCONFIG
="$BINDCONFIG --with-atf"
5600 elif test "$atf_path" != "no" ; then
5601 DISTCHECK_ATF_CONFIGURE_FLAG
="--with-atf=$atf_path"
5602 # Config path for pkg-config
5604 if test "$atf_path" != "yes" ; then
5605 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5606 atf_pcp
=$atf_path/lib
/pkgconfig
5607 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5608 atf_pcp
=$atf_path/lib64
/pkgconfig
5611 # Not specified, try some common paths
5612 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5615 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5616 atf_pcp
=$d/lib
/pkgconfig
5618 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5619 atf_pcp
=$d/lib64
/pkgconfig
5625 if test "$atf_pcp" = "" ; then
5626 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5628 # Extract the first word of "pkg-config", so it can be a program name with args.
5629 set dummy pkg-config
; ac_word
=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_pkgcfg_found+:} false
; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -n "$pkgcfg_found"; then
5636 ac_cv_prog_pkgcfg_found
="$pkgcfg_found" # Let the user override the test.
5638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir
=.
5643 for ac_exec_ext
in '' $ac_executable_extensions; do
5644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_pkgcfg_found
="pkg-config"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 pkgcfg_found
=$ac_cv_prog_pkgcfg_found
5656 if test -n "$pkgcfg_found"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgcfg_found" >&5
5658 $as_echo "$pkgcfg_found" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 if test "$pkgcfg_found" = ""; then
5666 as_fn_error $?
"Could not locate ATF, pkg-config not installed" "$LINENO" 5
5668 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5669 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5670 if test -f $atf_pcp/atf-sh.pc
; then
5671 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5673 # older versions don't have atf-sh, try usual place
5674 ATF_BIN
=$atf_path/bin
5677 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run/atf-report not found, assuming they are in your path" >&5
5679 $as_echo "$as_me: WARNING: atf-run/atf-report not found, assuming they are in your path" >&2;}
5688 if test "$atf_pcp" != ""; then
5696 if test -z "$HAVE_ATF_TRUE"; then :
5698 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5704 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5705 ### need to look there and potentially overwrite by default (but not if
5706 ### the user configures an alternate value). LOCALSTATEDIR is totally
5707 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5708 ### they would be insane for suggesting it. We need to look in /var/for
5709 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5712 if test "x$prefix" = xNONE
; then
5713 $as_echo_n "checking for prefix by " >&6
5714 # Extract the first word of "dhcpd", so it can be a program name with args.
5715 set dummy dhcpd
; ac_word
=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 case $ac_prefix_program in
5723 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir
=.
5731 for ac_exec_ext
in '' $ac_executable_extensions; do
5732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5745 if test -n "$ac_prefix_program"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5747 $as_echo "$ac_prefix_program" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 if test -n "$ac_prefix_program"; then
5755 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5756 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5757 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5758 X"$ac_prefix_program" : 'X\(//\)$' \| \
5759 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5760 $as_echo X"$ac_prefix_program" |
5761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5778 prefix
=`$as_dirname -- "$prefix" ||
5779 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5780 X"$prefix" : 'X\(//\)[^/]' \| \
5781 X"$prefix" : 'X\(//\)$' \| \
5782 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5783 $as_echo X"$prefix" |
5784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5805 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5806 # /usr/local/var/no/one/has/this/please/stop/trying?
5807 case "$localstatedir" in
5813 # Allow specification of alternate state files
5815 # Check whether --with-srv-lease-file was given.
5816 if test "${with_srv_lease_file+set}" = set; then :
5817 withval
=$with_srv_lease_file;
5818 cat >>confdefs.h
<<_ACEOF
5819 #define _PATH_DHCPD_DB "$withval"
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5826 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5827 if [ "x$with_srv_lease_file" = "x" ] ; then
5828 if [ -d "${localstatedir}/db" ] ; then
5829 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5830 elif [ -d "${localstatedir}/state" ] ; then
5831 if [ -d "${localstatedir}/state/dhcp" ] ; then
5832 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5834 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5836 elif [ -d "${localstatedir}/lib" ] ; then
5837 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5838 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5840 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5842 elif [ -d "${localstatedir}/etc" ] ; then
5843 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5845 with_srv_lease_file
="/etc/dhcpd.leases"
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5849 $as_echo "$with_srv_lease_file" >&6; }
5852 # Check whether --with-srv6-lease-file was given.
5853 if test "${with_srv6_lease_file+set}" = set; then :
5854 withval
=$with_srv6_lease_file;
5855 cat >>confdefs.h
<<_ACEOF
5856 #define _PATH_DHCPD6_DB "$withval"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5863 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5864 if [ "x$with_srv6_lease_file" = "x" ] ; then
5865 if [ -d "${localstatedir}/db" ] ; then
5866 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5867 elif [ -d "${localstatedir}/state" ] ; then
5868 if [ -d "${localstatedir}/state/dhcp" ] ; then
5869 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5871 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5873 elif [ -d "${localstatedir}/lib" ] ; then
5874 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5875 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5877 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5879 elif [ -d "${localstatedir}/etc" ] ; then
5880 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5882 with_srv6_lease_file
="/etc/dhcpd6.leases"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5886 $as_echo "$with_srv6_lease_file" >&6; }
5889 # Check whether --with-cli-lease-file was given.
5890 if test "${with_cli_lease_file+set}" = set; then :
5891 withval
=$with_cli_lease_file;
5892 cat >>confdefs.h
<<_ACEOF
5893 #define _PATH_DHCLIENT_DB "$withval"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5900 $as_echo_n "checking for dhclient.leases location... " >&6; }
5901 if [ "x$with_cli_lease_file" = "x" ] ; then
5902 if [ -d "${localstatedir}/db" ] ; then
5903 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5904 elif [ -d "${localstatedir}/state" ] ; then
5905 if [ -d "${localstatedir}/state/dhcp" ] ; then
5906 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5908 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5910 elif [ -d "${localstatedir}/lib" ] ; then
5911 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5912 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5914 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5916 elif [ -d "${localstatedir}/etc" ] ; then
5917 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5919 with_cli_lease_file
="/etc/dhclient.leases"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5923 $as_echo "$with_cli_lease_file" >&6; }
5926 # Check whether --with-cli6-lease-file was given.
5927 if test "${with_cli6_lease_file+set}" = set; then :
5928 withval
=$with_cli6_lease_file;
5929 cat >>confdefs.h
<<_ACEOF
5930 #define _PATH_DHCLIENT6_DB "$withval"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5937 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5938 if [ "x$with_cli6_lease_file" = "x" ] ; then
5939 if [ -d "${localstatedir}/db" ] ; then
5940 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5941 elif [ -d "${localstatedir}/state" ] ; then
5942 if [ -d "${localstatedir}/state/dhcp" ] ; then
5943 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5945 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5947 elif [ -d "${localstatedir}/lib" ] ; then
5948 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5949 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5951 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5953 elif [ -d "${localstatedir}/etc" ] ; then
5954 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5956 with_cli6_lease_file
="/etc/dhclient6.leases"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5960 $as_echo "$with_cli6_lease_file" >&6; }
5963 # Check whether --with-srv-pid-file was given.
5964 if test "${with_srv_pid_file+set}" = set; then :
5965 withval
=$with_srv_pid_file;
5966 cat >>confdefs.h
<<_ACEOF
5967 #define _PATH_DHCPD_PID "$withval"
5973 # Check whether --with-srv6-pid-file was given.
5974 if test "${with_srv6_pid_file+set}" = set; then :
5975 withval
=$with_srv6_pid_file;
5976 cat >>confdefs.h
<<_ACEOF
5977 #define _PATH_DHCPD6_PID "$withval"
5983 # Check whether --with-cli-pid-file was given.
5984 if test "${with_cli_pid_file+set}" = set; then :
5985 withval
=$with_cli_pid_file;
5986 cat >>confdefs.h
<<_ACEOF
5987 #define _PATH_DHCLIENT_PID "$withval"
5993 # Check whether --with-cli6-pid-file was given.
5994 if test "${with_cli6_pid_file+set}" = set; then :
5995 withval
=$with_cli6_pid_file;
5996 cat >>confdefs.h
<<_ACEOF
5997 #define _PATH_DHCLIENT6_PID "$withval"
6003 # Check whether --with-relay-pid-file was given.
6004 if test "${with_relay_pid_file+set}" = set; then :
6005 withval
=$with_relay_pid_file;
6006 cat >>confdefs.h
<<_ACEOF
6007 #define _PATH_DHCRELAY_PID "$withval"
6013 # Check whether --with-relay6-pid-file was given.
6014 if test "${with_relay6_pid_file+set}" = set; then :
6015 withval
=$with_relay6_pid_file;
6016 cat >>confdefs.h
<<_ACEOF
6017 #define _PATH_DHCRELAY6_PID "$withval"
6023 # Check basic types.
6024 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6029 cat >>confdefs.h
<<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6035 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6046 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6057 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6069 # Some systems need the u_intX_t types defined across.
6070 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
6071 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
6075 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6076 case $ac_cv_c_uint8_t in #(
6080 $as_echo "#define _UINT8_T 1" >>confdefs.h
6083 cat >>confdefs.h
<<_ACEOF
6084 #define uint8_t $ac_cv_c_uint8_t
6090 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
6095 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6096 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6100 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6101 case $ac_cv_c_uint16_t in #(
6106 cat >>confdefs.h
<<_ACEOF
6107 #define uint16_t $ac_cv_c_uint16_t
6113 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6118 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6119 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6123 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6124 case $ac_cv_c_uint32_t in #(
6128 $as_echo "#define _UINT32_T 1" >>confdefs.h
6131 cat >>confdefs.h
<<_ACEOF
6132 #define uint32_t $ac_cv_c_uint32_t
6138 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6143 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
6144 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
6148 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6149 case $ac_cv_c_uint64_t in #(
6153 $as_echo "#define _UINT64_T 1" >>confdefs.h
6156 cat >>confdefs.h
<<_ACEOF
6157 #define uint64_t $ac_cv_c_uint64_t
6163 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6169 # see if ifaddrs.h is available
6170 for ac_header
in ifaddrs.h
6172 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6173 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6174 cat >>confdefs.h
<<_ACEOF
6175 #define HAVE_IFADDRS_H 1
6183 # figure out what IPv4 interface code to use
6184 for ac_header
in linux
/types.h
6186 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6187 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6188 cat >>confdefs.h
<<_ACEOF
6189 #define HAVE_LINUX_TYPES_H 1
6195 # needed for linux/filter.h on old systems
6197 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6198 #ifdef HAVE_LINUX_TYPES_H
6199 #include <linux/types.h>
6203 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6208 if test -n "$DO_LPF"
6211 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6214 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6215 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6220 if test -n "$DO_DLPI"
6223 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6226 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6227 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6232 if test -n "$DO_BPF"
6235 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6241 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6242 # use the same structures. We like to use 'struct lifconf' and 'struct
6243 # lifreq', but we'll use these other structures if they're present. HPUX
6244 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6248 $as_echo_n "checking for struct lifnum... " >&6; }
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <sys/types.h>
6252 #include <sys/socket.h>
6264 if ac_fn_c_try_compile
"$LINENO"; then :
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 $as_echo "yes" >&6; }
6268 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6277 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6281 #include <net/if6.h>
6286 struct if_laddrconf a;
6292 if ac_fn_c_try_compile
"$LINENO"; then :
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294 $as_echo "yes" >&6; }
6296 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6305 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <sys/types.h>
6309 #include <net/if6.h>
6314 struct if_laddrreq a;
6320 if ac_fn_c_try_link
"$LINENO"; then :
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6322 $as_echo "yes" >&6; }
6324 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6330 rm -f core conftest.err conftest.
$ac_objext \
6331 conftest
$ac_exeext conftest.
$ac_ext
6334 # check for GCC noreturn attribute
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6337 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6344 void foo() __attribute__((noreturn));
6349 if ac_fn_c_try_compile
"$LINENO"; then :
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6351 $as_echo "yes" >&6; }
6353 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6359 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6364 # Look for optional headers.
6365 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6367 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6369 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6370 cat >>confdefs.h
<<_ACEOF
6371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6379 # Solaris needs some libraries for functions
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6381 $as_echo_n "checking for library containing socket... " >&6; }
6382 if ${ac_cv_search_socket+:} false
; then :
6383 $as_echo_n "(cached) " >&6
6385 ac_func_search_save_LIBS
=$LIBS
6386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6389 /* Override any GCC internal prototype to avoid an error.
6390 Use char because int might match the return type of a GCC
6391 builtin and then its argument prototype would still apply. */
6404 for ac_lib
in '' socket
; do
6405 if test -z "$ac_lib"; then
6406 ac_res
="none required"
6409 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6411 if ac_fn_c_try_link
"$LINENO"; then :
6412 ac_cv_search_socket
=$ac_res
6414 rm -f core conftest.err conftest.
$ac_objext \
6416 if ${ac_cv_search_socket+:} false
; then :
6420 if ${ac_cv_search_socket+:} false
; then :
6423 ac_cv_search_socket
=no
6426 LIBS
=$ac_func_search_save_LIBS
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6429 $as_echo "$ac_cv_search_socket" >&6; }
6430 ac_res
=$ac_cv_search_socket
6431 if test "$ac_res" != no
; then :
6432 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6437 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6438 if ${ac_cv_search_inet_ntoa+:} false
; then :
6439 $as_echo_n "(cached) " >&6
6441 ac_func_search_save_LIBS
=$LIBS
6442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6445 /* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6455 return inet_ntoa ();
6460 for ac_lib
in '' nsl
; do
6461 if test -z "$ac_lib"; then
6462 ac_res
="none required"
6465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6467 if ac_fn_c_try_link
"$LINENO"; then :
6468 ac_cv_search_inet_ntoa
=$ac_res
6470 rm -f core conftest.err conftest.
$ac_objext \
6472 if ${ac_cv_search_inet_ntoa+:} false
; then :
6476 if ${ac_cv_search_inet_ntoa+:} false
; then :
6479 ac_cv_search_inet_ntoa
=no
6482 LIBS
=$ac_func_search_save_LIBS
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6485 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6486 ac_res
=$ac_cv_search_inet_ntoa
6487 if test "$ac_res" != no
; then :
6488 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6494 $as_echo_n "checking for library containing inet_aton... " >&6; }
6495 if ${ac_cv_search_inet_aton+:} false
; then :
6496 $as_echo_n "(cached) " >&6
6498 ac_func_search_save_LIBS
=$LIBS
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 /* Override any GCC internal prototype to avoid an error.
6503 Use char because int might match the return type of a GCC
6504 builtin and then its argument prototype would still apply. */
6512 return inet_aton ();
6517 for ac_lib
in '' socket nsl
; do
6518 if test -z "$ac_lib"; then
6519 ac_res
="none required"
6522 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6524 if ac_fn_c_try_link
"$LINENO"; then :
6525 ac_cv_search_inet_aton
=$ac_res
6527 rm -f core conftest.err conftest.
$ac_objext \
6529 if ${ac_cv_search_inet_aton+:} false
; then :
6533 if ${ac_cv_search_inet_aton+:} false
; then :
6536 ac_cv_search_inet_aton
=no
6539 LIBS
=$ac_func_search_save_LIBS
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6542 $as_echo "$ac_cv_search_inet_aton" >&6; }
6543 ac_res
=$ac_cv_search_inet_aton
6544 if test "$ac_res" != no
; then :
6545 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6549 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6554 # Check for a standalone regex library.
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6556 $as_echo_n "checking for library containing regcomp... " >&6; }
6557 if ${ac_cv_search_regcomp+:} false
; then :
6558 $as_echo_n "(cached) " >&6
6560 ac_func_search_save_LIBS
=$LIBS
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6564 /* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6579 for ac_lib
in '' regex
; do
6580 if test -z "$ac_lib"; then
6581 ac_res
="none required"
6584 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6586 if ac_fn_c_try_link
"$LINENO"; then :
6587 ac_cv_search_regcomp
=$ac_res
6589 rm -f core conftest.err conftest.
$ac_objext \
6591 if ${ac_cv_search_regcomp+:} false
; then :
6595 if ${ac_cv_search_regcomp+:} false
; then :
6598 ac_cv_search_regcomp
=no
6601 LIBS
=$ac_func_search_save_LIBS
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6604 $as_echo "$ac_cv_search_regcomp" >&6; }
6605 ac_res
=$ac_cv_search_regcomp
6606 if test "$ac_res" != no
; then :
6607 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6612 for ac_func
in strlcat
6614 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6615 if test "x$ac_cv_func_strlcat" = xyes
; then :
6616 cat >>confdefs.h
<<_ACEOF
6617 #define HAVE_STRLCAT 1
6624 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6626 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6627 if ${ac_cv_search_if_nametoindex+:} false
; then :
6628 $as_echo_n "(cached) " >&6
6630 ac_func_search_save_LIBS
=$LIBS
6631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6634 /* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6640 char if_nametoindex ();
6644 return if_nametoindex ();
6649 for ac_lib
in '' ipv6
; do
6650 if test -z "$ac_lib"; then
6651 ac_res
="none required"
6654 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6656 if ac_fn_c_try_link
"$LINENO"; then :
6657 ac_cv_search_if_nametoindex
=$ac_res
6659 rm -f core conftest.err conftest.
$ac_objext \
6661 if ${ac_cv_search_if_nametoindex+:} false
; then :
6665 if ${ac_cv_search_if_nametoindex+:} false
; then :
6668 ac_cv_search_if_nametoindex
=no
6671 LIBS
=$ac_func_search_save_LIBS
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6674 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6675 ac_res
=$ac_cv_search_if_nametoindex
6676 if test "$ac_res" != no
; then :
6677 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6682 # check for /dev/random (declares HAVE_DEV_RANDOM)
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
6684 $as_echo_n "checking for random device... " >&6; }
6686 # Check whether --with-randomdev was given.
6687 if test "${with_randomdev+set}" = set; then :
6688 withval
=$with_randomdev; use_randomdev
="$withval"
6690 use_randomdev
="unspec"
6693 if test "$use_randomdev" = "unspec"; then
6694 if test "$cross_compiling" = "yes"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unspecified" >&5
6696 $as_echo "unspecified" >&6; }
6697 as_fn_error $?
" need --with-randomdev=PATH or --with-randomdev=no" "$LINENO" 5
6699 use_randomdev
="/dev/random"
6700 elif test "$use_randomdev" = "yes"; then
6701 use_randomdev
="/dev/random"
6703 if test "$use_randomdev" = "no"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6705 $as_echo "disabled" >&6; }
6706 BINDCONFIG
="$BINDCONFIG --with-randomdev=no"
6708 if test "$cross_compiling" = "yes"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev (unchecked)" >&5
6710 $as_echo "$use_randomdev (unchecked)" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_randomdev" >&5
6713 $as_echo "$use_randomdev" >&6; }
6714 as_ac_File
=`$as_echo "ac_cv_file_$use_randomdev" | $as_tr_sh`
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $use_randomdev" >&5
6716 $as_echo_n "checking for $use_randomdev... " >&6; }
6717 if eval \
${$as_ac_File+:} false
; then :
6718 $as_echo_n "(cached) " >&6
6720 test "$cross_compiling" = yes &&
6721 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6722 if test -r "$use_randomdev"; then
6723 eval "$as_ac_File=yes"
6725 eval "$as_ac_File=no"
6728 eval ac_res
=\$
$as_ac_File
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6731 if eval test \"x\$
"$as_ac_File"\" = x
"yes"; then :
6733 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6736 as_fn_error $?
"cannot find $use_randomdev" "$LINENO" 5
6740 BINDCONFIG
="$BINDCONFIG --with-randomdev=$use_randomdev"
6743 BINDIOMUX
="--disable-kqueue --disable-epoll --disable-devpoll"
6744 # check kqueue/epoll/devpoll alternative to select
6745 # Check whether --enable-kqueue was given.
6746 if test "${enable_kqueue+set}" = set; then :
6747 enableval
=$enable_kqueue; want_kqueue
="$enableval"
6752 if test "$want_kqueue" = "yes"; then
6753 BINDIOMUX
="--enable-kqueue"
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&5
6755 $as_echo "$as_me: WARNING: --enable-kqueue is not supported: it may lead to issues such as server looping" >&2;}
6757 # Check whether --enable-epoll was given.
6758 if test "${enable_epoll+set}" = set; then :
6759 enableval
=$enable_epoll; want_epoll
="$enableval"
6764 if test "$want_epoll" = "yes"; then
6765 BINDIOMUX
="--enable-epoll"
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&5
6767 $as_echo "$as_me: WARNING: --enable-epoll is not supported: it may lead to issues such as server looping" >&2;}
6769 # Check whether --enable-devpoll was given.
6770 if test "${enable_devpoll+set}" = set; then :
6771 enableval
=$enable_devpoll; want_devpoll
="$enableval"
6776 if test "$want_devpoll" = "yes"; then
6777 BINDIOMUX
="--enable-devpoll"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&5
6779 $as_echo "$as_me: WARNING: --enable-devpoll is not supported: it may lead to issues such as server looping" >&2;}
6783 # general extra bind configure arguments
6785 # Check whether --with-bind-extra-config was given.
6786 if test "${with_bind_extra_config+set}" = set; then :
6787 withval
=$with_bind_extra_config; use_xbindconfig
="$withval"
6792 case "$use_xbindconfig" in
6796 BINDCONFIG
="$BINDCONFIG $use_xbindconfig"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&5
6798 $as_echo "$as_me: WARNING: Most options to bind configure are not supported when used by ISC DHCP" >&2;}
6802 # see if there is a "sa_len" field in our interface information structure
6803 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6805 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6807 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6812 # figure out pointer size
6813 SAVE_CFLAGS
="$CFLAGS"
6814 CFLAGS
="$CFLAGS -I$srcdir"
6815 # The cast to long int works around a bug in the HP C Compiler
6816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6818 # This bug is HP SR number 8606223364.
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6820 $as_echo_n "checking size of struct iaddr *... " >&6; }
6821 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6822 $as_echo_n "(cached) " >&6
6824 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6825 #include \"includes/inet.h\"
6831 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6834 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6835 See \`config.log' for more details" "$LINENO" 5; }
6837 ac_cv_sizeof_struct_iaddr_p
=0
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6843 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6847 cat >>confdefs.h
<<_ACEOF
6848 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6852 CFLAGS
="$SAVE_CFLAGS"
6854 # Solaris does not have the msg_control or msg_controlen members
6855 # in the msghdr structure unless you define:
6857 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6859 # See the "standards" man page for details.
6861 # We check for the msg_control member, and if it is not found, we check
6862 # again with the appropriate defines added to the CFLAGS. (In order to
6863 # do this we have to remove the check from the cache, which is what the
6865 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6866 #include <sys/types.h>
6867 #include <sys/socket.h>
6870 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6873 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6874 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6875 unset ac_cv_member_struct_msghdr_msg_control
6876 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6877 #include <sys/types.h>
6878 #include <sys/socket.h>
6881 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6884 as_fn_error $?
"Missing msg_control member in
6885 msg_control structure." "$LINENO" 5
6892 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>
6894 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6896 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6902 # bind/Makefile.in is not from automake so we need 2 variables for bind dir
6911 # Check whether --with-libbind was given.
6912 if test "${with_libbind+set}" = set; then :
6913 withval
=$with_libbind; use_libbind
="$withval"
6918 case "$use_libbind" in
6920 as_fn_error $?
"PATH is required in --with-libbind=PATH" "$LINENO" 5
6923 BINDSUBDIR
="\${top_srcdir}/bind"
6924 my_abs_srcdir
=`cd $srcdir && pwd`
6925 BINDDIR
="${my_abs_srcdir}/bind"
6926 if test ! -d "$srcdir/bind"; then
6927 as_fn_error $?
"Where to find or build bind includes and libraries must be specified" "$LINENO" 5
6929 if test -d "$srcdir/bind/bind9"; then
6930 BINDSRCDIR
="${my_abs_srcdir}/bind/bind9"
6932 if test ! -f "$srcdir/bind/version.tmp"; then
6933 as_fn_error $?
"Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
6935 .
"$srcdir/bind/version.tmp"
6936 bindversion
=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
6937 BINDSRCDIR
="${my_abs_srcdir}/bind/bind-$bindversion"
6939 ac_config_files
="$ac_config_files $srcdir/bind/Makefile"
6942 BINDLIBIRSDIR
="$BINDSRCDIR/lib/irs"
6943 BINDLIBDNSDIR
="$BINDSRCDIR/lib/dns"
6944 BINDLIBISCCFGDIR
="$BINDSRCDIR/lib/isccfg"
6945 BINDLIBISCDIR
="$BINDSRCDIR/lib/isc"
6948 if test ! -d "$use_libbind"; then
6949 as_fn_error $?
"Cannot find bind directory at $use_libbind" "$LINENO" 5
6951 if test ! -d "$use_libbind/include"; then
6952 as_fn_error $?
"Cannot find bind includes at $use_libbind/include" "$LINENO" 5
6954 if test ! -d "$use_libbind/lib"; then
6955 as_fn_error $?
"Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
6957 BINDDIR
="$use_libbind"
6958 BINDLIBIRSDIR
="$BINDDIR/lib"
6959 BINDLIBDNSDIR
="$BINDDIR/lib"
6960 BINDLIBISCCFGDIR
="$BINDDIR/lib"
6961 BINDLIBISCDIR
="$BINDDIR/lib"
6974 # Check whether --with-ldap was given.
6975 if test "${with_ldap+set}" = set; then :
6976 withval
=$with_ldap; ldap
=$withval
6982 # OpenLDAP with SSL support.
6984 # Check whether --with-ldapcrypto was given.
6985 if test "${with_ldapcrypto+set}" = set; then :
6986 withval
=$with_ldapcrypto; ldapcrypto
=$withval
6992 # Gssapi to allow LDAP to authenticate with a keytab
6994 # Check whether --with-ldap-gssapi was given.
6995 if test "${with_ldap_gssapi+set}" = set; then :
6996 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
7003 # LDAP CASA auth support.
7005 # Check whether --with-ldapcasa was given.
7006 if test "${with_ldapcasa+set}" = set; then :
7007 withval
=$with_ldapcasa; ldapcasa
=$withval
7013 # OpenLDAP support is disabled by default, if enabled then SSL support is an
7014 # extra optional that is also disabled by default. Enabling LDAP SSL support
7015 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
7016 # but doesn't include SSL. The two are not dependant.
7017 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
7021 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
7022 if ${ac_cv_search_ldap_initialize+:} false
; then :
7023 $as_echo_n "(cached) " >&6
7025 ac_func_search_save_LIBS
=$LIBS
7026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7029 /* Override any GCC internal prototype to avoid an error.
7030 Use char because int might match the return type of a GCC
7031 builtin and then its argument prototype would still apply. */
7035 char ldap_initialize ();
7039 return ldap_initialize ();
7044 for ac_lib
in '' ldap
; do
7045 if test -z "$ac_lib"; then
7046 ac_res
="none required"
7049 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7051 if ac_fn_c_try_link
"$LINENO"; then :
7052 ac_cv_search_ldap_initialize
=$ac_res
7054 rm -f core conftest.err conftest.
$ac_objext \
7056 if ${ac_cv_search_ldap_initialize+:} false
; then :
7060 if ${ac_cv_search_ldap_initialize+:} false
; then :
7063 ac_cv_search_ldap_initialize
=no
7066 LIBS
=$ac_func_search_save_LIBS
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
7069 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
7070 ac_res
=$ac_cv_search_ldap_initialize
7071 if test "$ac_res" != no
; then :
7072 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7077 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
7078 See \`config.log' for more details" "$LINENO" 5; }
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
7082 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
7083 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 ac_func_search_save_LIBS
=$LIBS
7087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7096 char ber_pvt_opt_on ();
7100 return ber_pvt_opt_on ();
7105 for ac_lib
in '' lber
; do
7106 if test -z "$ac_lib"; then
7107 ac_res
="none required"
7110 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7112 if ac_fn_c_try_link
"$LINENO"; then :
7113 ac_cv_search_ber_pvt_opt_on
=$ac_res
7115 rm -f core conftest.err conftest.
$ac_objext \
7117 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7121 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
7124 ac_cv_search_ber_pvt_opt_on
=no
7127 LIBS
=$ac_func_search_save_LIBS
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
7130 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
7131 ac_res
=$ac_cv_search_ber_pvt_opt_on
7132 if test "$ac_res" != no
; then :
7133 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7138 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
7139 See \`config.log' for more details" "$LINENO" 5; }
7142 if test x
$ldap_gssapi = xyes
; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
7144 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
7145 if ${ac_cv_search_krb5_init_context+:} false
; then :
7146 $as_echo_n "(cached) " >&6
7148 ac_func_search_save_LIBS
=$LIBS
7149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7158 char krb5_init_context ();
7162 return krb5_init_context ();
7167 for ac_lib
in '' krb5
; do
7168 if test -z "$ac_lib"; then
7169 ac_res
="none required"
7172 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7174 if ac_fn_c_try_link
"$LINENO"; then :
7175 ac_cv_search_krb5_init_context
=$ac_res
7177 rm -f core conftest.err conftest.
$ac_objext \
7179 if ${ac_cv_search_krb5_init_context+:} false
; then :
7183 if ${ac_cv_search_krb5_init_context+:} false
; then :
7186 ac_cv_search_krb5_init_context
=no
7189 LIBS
=$ac_func_search_save_LIBS
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
7192 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
7193 ac_res
=$ac_cv_search_krb5_init_context
7194 if test "$ac_res" != no
; then :
7195 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7200 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
7201 See \`config.log' for more details" "$LINENO" 5; }
7206 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
7212 for ac_header
in ldap.h
7214 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
7215 if test "x$ac_cv_header_ldap_h" = xyes
; then :
7216 cat >>confdefs.h
<<_ACEOF
7217 #define HAVE_LDAP_H 1
7224 for ac_func
in inet_pton inet_ntop
7226 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7227 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7228 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7229 cat >>confdefs.h
<<_ACEOF
7230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7238 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
7240 if test x
$ldapcasa = xyes
; then
7241 for ac_header
in micasa_mgmd.h
7243 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
7244 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
7245 cat >>confdefs.h
<<_ACEOF
7246 #define HAVE_MICASA_MGMD_H 1
7249 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
7252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7254 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
7255 See \`config.log' for more details" "$LINENO" 5; }
7262 if test x
$ldapcrypto = xyes
; then
7263 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
7266 if test x
$ldap_gssapi = xyes
; then
7267 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
7270 LDAP_CFLAGS
=$LDAP_CFLAGS
7274 # Append selected warning levels to CFLAGS before substitution (but after
7275 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
7276 CFLAGS
="$CFLAGS $STD_CWARNINGS"
7278 # Try to add the bind and dhcp include directories
7279 CFLAGS
="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include"
7283 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542";;
7285 # As of Solaris 11, ethernet dev files are in /dev/net
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/net" >&5
7287 $as_echo_n "checking for /dev/net... " >&6; }
7288 if ${ac_cv_file__dev_net+:} false
; then :
7289 $as_echo_n "(cached) " >&6
7291 test "$cross_compiling" = yes &&
7292 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
7293 if test -r "/dev/net"; then
7294 ac_cv_file__dev_net
=yes
7296 ac_cv_file__dev_net
=no
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_net" >&5
7300 $as_echo "$ac_cv_file__dev_net" >&6; }
7301 if test "x$ac_cv_file__dev_net" = xyes
; then :
7303 $as_echo "#define USE_DEV_NET 1" >>confdefs.h
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
7312 $as_echo_n "checking for flexible array members... " >&6; }
7313 if ${ac_cv_c_flexmember+:} false
; then :
7314 $as_echo_n "(cached) " >&6
7316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7321 struct s { int n; double d[]; };
7326 struct s *p = malloc (offsetof (struct s, d)
7327 + m * sizeof (double));
7329 return p->d != (double *) NULL;
7334 if ac_fn_c_try_compile
"$LINENO"; then :
7335 ac_cv_c_flexmember
=yes
7337 ac_cv_c_flexmember
=no
7339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7342 $as_echo "$ac_cv_c_flexmember" >&6; }
7343 if test $ac_cv_c_flexmember = yes; then
7345 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7348 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7353 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"
7355 cat >confcache
<<\_ACEOF
7356 # This file is a shell script that caches the results of configure
7357 # tests run on this system so they can be shared between configure
7358 # scripts and configure runs, see configure's option --config-cache.
7359 # It is not useful on other systems. If it contains results you don't
7360 # want to keep, you may remove or edit it.
7362 # config.status only pays attention to the cache file if you give it
7363 # the --recheck option to rerun configure.
7365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7371 # The following way of writing the cache mishandles newlines in values,
7372 # but we know of no workaround that is simple, portable, and efficient.
7373 # So, we kill variables containing newlines.
7374 # Ultrix sh set writes to stderr and can't be redirected directly,
7375 # and sets the high bit in the cache file unless we assign to the vars.
7377 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7378 eval ac_val
=\$
$ac_var
7382 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7386 _ | IFS | as_nl
) ;; #(
7387 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7388 *) { eval $ac_var=; unset $ac_var;} ;;
7394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7395 *${as_nl}ac_space
=\
*)
7396 # `set' does not quote correctly, so add quotes: double-quote
7397 # substitution turns \\\\ into \\, and sed turns \\ into \.
7400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7403 # `set' quotes correctly as required by POSIX, so do not add quotes.
7404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7417 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7418 if test -w "$cache_file"; then
7419 if test "x$cache_file" != "x/dev/null"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7421 $as_echo "$as_me: updating cache $cache_file" >&6;}
7422 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7423 cat confcache
>"$cache_file"
7425 case $cache_file in #(
7427 mv -f confcache
"$cache_file"$$
&&
7428 mv -f "$cache_file"$$
"$cache_file" ;; #(
7430 mv -f confcache
"$cache_file" ;;
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7441 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7442 # Let make expand exec_prefix.
7443 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7445 DEFS
=-DHAVE_CONFIG_H
7450 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7451 # 1. Remove the extension, and $U if already installed.
7452 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7453 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7455 # will be set to the directory where LIBOBJS objects are built.
7456 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7457 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7461 LTLIBOBJS
=$ac_ltlibobjs
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7465 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7466 if test -n "$am_sleep_pid"; then
7467 # Hide warnings about reused PIDs.
7468 wait $am_sleep_pid 2>/dev
/null
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7471 $as_echo "done" >&6; }
7472 if test -n "$EXEEXT"; then
7474 am__EXEEXT_FALSE
='#'
7480 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7481 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7484 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7485 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7488 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7489 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7493 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7494 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7497 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7498 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7502 : "${CONFIG_STATUS=./config.status}"
7504 ac_clean_files_save
=$ac_clean_files
7505 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7507 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7509 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7511 # Generated by $as_me.
7512 # Run this file to recreate the current configuration.
7513 # Compiler output produced by configure, useful for debugging
7514 # configure, is in config.log if it exists.
7520 SHELL=\${CONFIG_SHELL-$SHELL}
7523 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7524 ## -------------------- ##
7525 ## M4sh Initialization. ##
7526 ## -------------------- ##
7528 # Be more Bourne compatible
7529 DUALCASE
=1; export DUALCASE
# for MKS sh
7530 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7533 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7534 # is contrary to our usage. Disable this feature.
7535 alias -g '${1+"$@"}'='"$@"'
7536 setopt NO_GLOB_SUBST
7538 case `(set -o) 2>/dev/null` in #(
7550 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7551 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7554 # Prefer a ksh shell builtin over an external printf program on Solaris,
7555 # but without wasting forks for bash or zsh.
7556 if test -z "$BASH_VERSION$ZSH_VERSION" \
7557 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7558 as_echo='print
-r --'
7559 as_echo_n='print
-rn --'
7560 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7561 as_echo='printf %s
\n'
7562 as_echo_n='printf %s
'
7564 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7565 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7566 as_echo_n='/usr
/ucb
/echo -n'
7568 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7569 as_echo_n_body='eval
7573 expr "X$arg" : "X\\(.*\\)$as_nl";
7574 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7576 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7578 export as_echo_n_body
7579 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7582 as_echo='sh
-c $as_echo_body as_echo
'
7585 # The user is always right.
7586 if test "${PATH_SEPARATOR+set}" != set; then
7588 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7589 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7596 # We need space, tab and new line, in precisely that order. Quoting is
7597 # there to prevent editors from complaining about space-tab.
7598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7599 # splitting by setting IFS to empty value.)
7602 # Find who we are. Look in the path if we contain no directory separator.
7605 *[\\/]* ) as_myself=$0 ;;
7606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7617 # We did not find ourselves, most probably we were run as `sh COMMAND'
7618 # in which case we are not to be found in the path.
7619 if test "x$as_myself" = x
; then
7622 if test ! -f "$as_myself"; then
7623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7627 # Unset variables that we do not need and which cause bugs (e.g. in
7628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7629 # suppresses any "Segmentation fault" message there. '((' could
7630 # trigger a bug in pdksh 5.2.14.
7631 for as_var
in BASH_ENV ENV MAIL MAILPATH
7632 do eval test x\
${$as_var+set} = xset \
7633 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7646 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7649 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7650 # ----------------------------------------
7651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7653 # script with STATUS, using 1 if that was 0.
7656 as_status
=$1; test $as_status -eq 0 && as_status
=1
7658 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7661 $as_echo "$as_me: error: $2" >&2
7662 as_fn_exit
$as_status
7666 # as_fn_set_status STATUS
7667 # -----------------------
7668 # Set $? to STATUS, without forking.
7672 } # as_fn_set_status
7676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7686 # Portably unset VAR.
7689 { eval $1=; unset $1;}
7691 as_unset
=as_fn_unset
7692 # as_fn_append VAR VALUE
7693 # ----------------------
7694 # Append the text in VALUE to the end of the definition contained in VAR. Take
7695 # advantage of any shell optimizations that allow amortized linear growth over
7696 # repeated appends, instead of the typical quadratic growth present in naive
7698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7699 eval 'as_fn_append ()
7710 # as_fn_arith ARG...
7711 # ------------------
7712 # Perform arithmetic evaluation on the ARGs, and store the result in the
7713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7714 # must be portable across $(()) and expr.
7715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7716 eval 'as_fn_arith ()
7723 as_val
=`expr "$@" || test $? -eq 1`
7728 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7729 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7735 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7736 as_basename
=basename
7741 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7747 as_me
=`$as_basename -- "$0" ||
7748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7749 X"$0" : 'X\(//\)$' \| \
7750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7752 sed '/^.*\/\([^/][^/]*\)\/*$/{
7766 # Avoid depending upon Character Ranges.
7767 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7768 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7769 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7770 as_cr_digits
='0123456789'
7771 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7773 ECHO_C
= ECHO_N
= ECHO_T
=
7774 case `echo -n x` in #(((((
7776 case `echo 'xy\c'` in
7777 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7779 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7786 rm -f conf$$ conf$$.exe conf$$.
file
7787 if test -d conf$$.dir
; then
7788 rm -f conf$$.dir
/conf$$.
file
7791 mkdir conf$$.dir
2>/dev
/null
7793 if (echo >conf$$.
file) 2>/dev
/null
; then
7794 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7796 # ... but there are two gotchas:
7797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7799 # In both cases, we have to default to `cp -pR'.
7800 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7802 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7810 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7811 rmdir conf$$.dir
2>/dev
/null
7816 # Create "$as_dir" as a directory, including parents if necessary.
7821 -*) as_dir
=.
/$as_dir;;
7823 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7827 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7828 *) as_qdir
=$as_dir;;
7830 as_dirs
="'$as_qdir' $as_dirs"
7831 as_dir
=`$as_dirname -- "$as_dir" ||
7832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7833 X"$as_dir" : 'X\(//\)[^/]' \| \
7834 X"$as_dir" : 'X\(//\)$' \| \
7835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7836 $as_echo X"$as_dir" |
7837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7854 test -d "$as_dir" && break
7856 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7857 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7861 if mkdir
-p .
2>/dev
/null
; then
7862 as_mkdir_p
='mkdir -p "$as_dir"'
7864 test -d .
/-p && rmdir .
/-p
7869 # as_fn_executable_p FILE
7870 # -----------------------
7871 # Test if FILE is an executable regular file.
7872 as_fn_executable_p
()
7874 test -f "$1" && test -x "$1"
7875 } # as_fn_executable_p
7877 as_executable_p
=as_fn_executable_p
7879 # Sed expression to map a string onto a valid CPP name.
7880 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7882 # Sed expression to map a string onto a valid variable name.
7883 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7887 ## ----------------------------------- ##
7888 ## Main body of $CONFIG_STATUS script. ##
7889 ## ----------------------------------- ##
7891 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7894 # Save the log message, to keep $0 and so on meaningful, and to
7895 # report actual input values of CONFIG_FILES etc. instead of their
7896 # values after options handling.
7898 This file was extended by DHCP $as_me 4.3.4, which was
7899 generated by GNU Autoconf 2.69. Invocation command line was
7901 CONFIG_FILES = $CONFIG_FILES
7902 CONFIG_HEADERS = $CONFIG_HEADERS
7903 CONFIG_LINKS = $CONFIG_LINKS
7904 CONFIG_COMMANDS = $CONFIG_COMMANDS
7907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7912 case $ac_config_files in *"
7913 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7916 case $ac_config_headers in *"
7917 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7922 # Files that config.status was made for.
7923 config_files="$ac_config_files"
7924 config_headers="$ac_config_headers"
7925 config_commands="$ac_config_commands"
7929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7931 \`$as_me' instantiates files and other configuration actions
7932 from templates according to the current configuration. Unless the files
7933 and actions are specified as TAGs, all are instantiated by default.
7935 Usage: $0 [OPTION]... [TAG]...
7937 -h, --help print this help, then exit
7938 -V, --version print version number and configuration settings, then exit
7939 --config print configuration, then exit
7940 -q, --quiet, --silent
7941 do not print progress messages
7942 -d, --debug don't remove temporary files
7943 --recheck update $as_me by reconfiguring in the same conditions
7944 --file=FILE[:TEMPLATE]
7945 instantiate the configuration file FILE
7946 --header=FILE[:TEMPLATE]
7947 instantiate the configuration header FILE
7949 Configuration files:
7952 Configuration headers:
7955 Configuration commands:
7958 Report bugs to <dhcp-users@isc.org>."
7961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7962 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7964 DHCP config.status 4.3.4
7965 configured by $0, generated by GNU Autoconf 2.69,
7966 with options \\"\$ac_cs_config\\"
7968 Copyright (C) 2012 Free Software Foundation, Inc.
7969 This config.status script is free software; the Free Software Foundation
7970 gives unlimited permission to copy, distribute and modify it."
7977 test -n "\$AWK" || AWK=awk
7980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7981 # The default lists apply if the user does not specify any file.
7987 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7988 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7992 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8004 # Handling of the options.
8005 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8007 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8008 $as_echo "$ac_cs_version"; exit ;;
8009 --config |
--confi |
--conf |
--con |
--co |
--c )
8010 $as_echo "$ac_cs_config"; exit ;;
8011 --debug |
--debu |
--deb |
--de |
--d |
-d )
8013 --file |
--fil |
--fi |
--f )
8016 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8017 '') as_fn_error $?
"missing file argument" ;;
8019 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8020 ac_need_defaults
=false
;;
8021 --header |
--heade |
--head |
--hea )
8024 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8026 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8027 ac_need_defaults
=false
;;
8029 # Conflict between --help and --header
8030 as_fn_error $?
"ambiguous option: \`$1'
8031 Try \`$0 --help' for more information.";;
8032 --help |
--hel |
-h )
8033 $as_echo "$ac_cs_usage"; exit ;;
8034 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8035 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8039 -*) as_fn_error $?
"unrecognized option: \`$1'
8040 Try \`$0 --help' for more information." ;;
8042 *) as_fn_append ac_config_targets
" $1"
8043 ac_need_defaults
=false
;;
8049 ac_configure_extra_args
=
8051 if $ac_cs_silent; then
8053 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8058 if \$ac_cs_recheck; then
8059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8061 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8062 CONFIG_SHELL='$SHELL'
8068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8073 ## Running $as_me. ##
8079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8083 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8089 # Handling of arguments.
8090 for ac_config_target
in $ac_config_targets
8092 case $ac_config_target in
8093 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8094 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
8095 "$srcdir/bind/Makefile") CONFIG_FILES
="$CONFIG_FILES $srcdir/bind/Makefile" ;;
8096 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8097 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
8098 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
8099 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8100 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
8101 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
8102 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
8103 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
8104 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
8105 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
8106 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
8107 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
8108 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
8109 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
8111 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8116 # If the user did not use the arguments to specify the items to instantiate,
8117 # then the envvar interface is used. Set only those that are not.
8118 # We use the long form for the default assignment because of an extremely
8119 # bizarre bug on SunOS 4.1.3.
8120 if $ac_need_defaults; then
8121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8126 # Have a temporary directory for convenience. Make it in the build tree
8127 # simply because there is no reason against having it here, and in addition,
8128 # creating and moving files from /tmp can sometimes cause problems.
8129 # Hook for its removal unless debugging.
8130 # Note that there is a small window in which the directory will not be cleaned:
8131 # after its creation but before its name has been assigned to `$tmp'.
8135 trap 'exit_status=$?
8137 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8139 trap 'as_fn_exit 1' 1 2 13 15
8141 # Create a (secure) tmp directory for tmp files.
8144 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8148 tmp
=.
/conf$$
-$RANDOM
8149 (umask 077 && mkdir
"$tmp")
8150 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8153 # Set up the scripts for CONFIG_FILES section.
8154 # No need to generate them if there are no CONFIG_FILES.
8155 # This happens for instance with `./config.status config.h'.
8156 if test -n "$CONFIG_FILES"; then
8159 ac_cr
=`echo X | tr X '\015'`
8160 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8161 # But we know of no other shell where ac_cr would be empty at this
8162 # point, so we can use a bashism as a fallback.
8163 if test "x$ac_cr" = x
; then
8164 eval ac_cr
=\$
\'\\r
\'
8166 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8167 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8173 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8178 echo "cat >conf$$subs.awk <<_ACEOF" &&
8179 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8182 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8183 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8185 for ac_last_try in false false false false false :; do
8186 . ./conf$$subs.sh ||
8187 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8189 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8190 if test $ac_delim_n = $ac_delim_num; then
8192 elif $ac_last_try; then
8193 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8195 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8201 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8205 s/^/S["/; s
/!.
*/"]=/
8215 s/\(.\{148\}\)..*/\1/
8217 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8222 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8229 s/\(.\{148\}\)..*/\1/
8231 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8235 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8240 ' <conf$$subs.awk | sed '
8245 ' >>$CONFIG_STATUS || ac_write_fail=1
8246 rm -f conf$$subs.awk
8247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8249 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8250 for (key in S) S_is_set[key] = 1
8256 nfields = split(line, field, "@
")
8258 len = length(field[1])
8259 for (i = 2; i < nfields; i++) {
8261 keylen = length(key)
8262 if (S_is_set[key]) {
8264 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8265 len += length(value) + length(field[++i])
8276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8277 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8278 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8281 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8282 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8285 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8286 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8287 # trailing colons and then remove the whole line if VPATH becomes empty
8288 # (actually we leave an empty line to preserve line numbers).
8289 if test "x
$srcdir" = x.; then
8290 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8309 fi # test -n "$CONFIG_FILES"
8311 # Set up the scripts for CONFIG_HEADERS section.
8312 # No need to generate them if there are no CONFIG_HEADERS.
8313 # This happens for instance with `./config.status Makefile'.
8314 if test -n "$CONFIG_HEADERS"; then
8315 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8319 # Transform confdefs.h into an awk script `defines.awk', embedded as
8320 # here-document in config.status, that substitutes the proper values into
8321 # config.h.in to produce config.h.
8323 # Create a delimiter string that does not exist in confdefs.h, to ease
8324 # handling of long lines.
8326 for ac_last_try in false false :; do
8327 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8328 if test -z "$ac_tt"; then
8330 elif $ac_last_try; then
8331 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8333 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8337 # For the awk script, D is an array of macro values keyed by name,
8338 # likewise P contains macro parameters if any. Preserve backslash
8339 # newline sequences.
8341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8343 s/.\{148\}/&'"$ac_delim"'/g
8346 s/^[ ]*#[ ]*define[ ][ ]*/ /
8353 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8355 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8360 D["\
1"]=" \
3\\\\\\n
"\\/p
8362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8367 s/.\{148\}/&'"$ac_delim"'/g
8372 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8375 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8377 ' <confdefs.h | sed '
8378 s/'"$ac_delim"'/"\\\
8379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8382 for (key in D) D_is_set[key] = 1
8385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8387 split(line, arg, " ")
8388 if (arg[1] == "#") {
8392 defundef
= substr
(arg
[1], 2)
8395 split(mac1
, mac2
, "(") #)
8397 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8398 if (D_is_set
[macro
]) {
8399 # Preserve the white space surrounding the "#".
8400 print prefix
"define", macro P
[macro
] D
[macro
]
8403 # Replace #undef with comments. This is necessary, for example,
8404 # in the case of _POSIX_SOURCE, which is predefined and required
8405 # on some systems where configure will not decide to define it.
8406 if (defundef
== "undef") {
8407 print
"/*", prefix defundef
, macro
, "*/"
8415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8416 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8417 fi # test -n "$CONFIG_HEADERS"
8420 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8425 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8427 case $ac_mode$ac_tag in
8429 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8430 :[FH
]-) ac_tag
=-:-;;
8431 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8448 -) ac_f
="$ac_tmp/stdin";;
8449 *) # Look for the file first in the build tree, then in the source tree
8450 # (if the path is not absolute). The absolute path cannot be DOS-style,
8451 # because $ac_f cannot contain `:'.
8455 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8457 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8459 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8460 as_fn_append ac_file_inputs
" '$ac_f'"
8463 # Let's still pretend it is `configure' which instantiates (i.e., don't
8464 # use $as_me), people would be surprised to read:
8465 # /* config.h. Generated by config.status. */
8466 configure_input
='Generated from '`
8467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8469 if test x
"$ac_file" != x-
; then
8470 configure_input
="$ac_file. $configure_input"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8472 $as_echo "$as_me: creating $ac_file" >&6;}
8474 # Neutralize special characters interpreted by sed in replacement strings.
8475 case $configure_input in #(
8476 *\
&* |
*\|
* |
*\\* )
8477 ac_sed_conf_input
=`$as_echo "$configure_input" |
8478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8479 *) ac_sed_conf_input
=$configure_input;;
8483 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8484 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8489 ac_dir
=`$as_dirname -- "$ac_file" ||
8490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8491 X"$ac_file" : 'X\(//\)[^/]' \| \
8492 X"$ac_file" : 'X\(//\)$' \| \
8493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8494 $as_echo X"$ac_file" |
8495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8512 as_dir
="$ac_dir"; as_fn_mkdir_p
8516 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8518 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8519 # A ".." for each directory in $ac_dir_suffix.
8520 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8521 case $ac_top_builddir_sub in
8522 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8523 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8526 ac_abs_top_builddir
=$ac_pwd
8527 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8528 # for backward compatibility:
8529 ac_top_builddir
=$ac_top_build_prefix
8532 .
) # We are building in place.
8534 ac_top_srcdir
=$ac_top_builddir_sub
8535 ac_abs_top_srcdir
=$ac_pwd ;;
8536 [\\/]* | ?
:[\\/]* ) # Absolute name.
8537 ac_srcdir
=$srcdir$ac_dir_suffix;
8538 ac_top_srcdir
=$srcdir
8539 ac_abs_top_srcdir
=$srcdir ;;
8541 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8542 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8543 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8545 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8555 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8556 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8560 [\\/$
]* | ?
:[\\/]* ) ;;
8561 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8566 # Neutralize VPATH when `$srcdir' = `.'.
8567 # Shell code in configure.ac might set extrasub.
8568 # FIXME: do we really want to maintain this feature?
8569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8570 ac_sed_extra="$ac_vpsub
8573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8575 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8576 s|@configure_input@|
$ac_sed_conf_input|
;t t
8577 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8578 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8579 s
&@srcdir@
&$ac_srcdir&;t t
8580 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8581 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8582 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8583 s
&@builddir@
&$ac_builddir&;t t
8584 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8585 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8586 s
&@INSTALL@
&$ac_INSTALL&;t t
8587 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8589 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8590 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8593 rm -f "$ac_tmp/stdin
"
8595 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8596 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8598 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8604 if test x"$ac_file" != x-; then
8606 $as_echo "/* $configure_input */" \
8607 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8608 } >"$ac_tmp/config.h
" \
8609 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8610 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8612 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8615 mv "$ac_tmp/config.h
" "$ac_file" \
8616 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8619 $as_echo "/* $configure_input */" \
8620 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8621 || as_fn_error $? "could not create
-" "$LINENO" 5
8623 # Compute "$ac_file"'s index in $config_headers.
8626 for _am_header in $config_headers :; do
8628 $_am_arg | $_am_arg:* )
8631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8634 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8635 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8636 X"$_am_arg" : 'X\(//\)[^/]' \| \
8637 X"$_am_arg" : 'X\(//\)$' \| \
8638 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8639 $as_echo X"$_am_arg" |
8640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8656 s/.*/./; q'`/stamp-h$_am_stamp_count
8659 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8660 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8665 case $ac_file$ac_mode in
8666 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8667 # Older Autoconf quotes --file arguments for eval, but not when files
8668 # are listed without --file. Let's play safe and only enable the eval
8669 # if we detect the quoting.
8670 case $CONFIG_FILES in
8671 *\'*) eval set x "$CONFIG_FILES" ;;
8672 *) set x $CONFIG_FILES ;;
8677 # Strip MF so we end up with the name of the file.
8678 mf=`echo "$mf" | sed -e 's/:.*$//'`
8679 # Check whether this is an Automake generated Makefile or not.
8680 # We used to match only the files named 'Makefile.in', but
8681 # some people rename them; so instead we look at the file content.
8682 # Grep'ing the first line is not enough: some people post-process
8683 # each Makefile.in and add a new line on top of each file to say so.
8684 # Grep'ing the whole file is not good either: AIX grep has a line
8685 # limit of 2048, but all sed's we know have understand at least 4000.
8686 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8687 dirpart=`$as_dirname -- "$mf" ||
8688 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8689 X"$mf" : 'X\(//\)[^/]' \| \
8690 X"$mf" : 'X\(//\)$' \| \
8691 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8713 # Extract the definition of DEPDIR, am__include, and am__quote
8714 # from the Makefile without running 'make'.
8715 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8716 test -z "$DEPDIR" && continue
8717 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8718 test -z "$am__include" && continue
8719 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8720 # Find all dependency output files, they are included files with
8721 # $(DEPDIR) in their names. We invoke sed twice because it is the
8722 # simplest approach to changing $(DEPDIR) to its actual value in the
8724 for file in `sed -n "
8725 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8726 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8727 # Make sure the directory exists.
8728 test -f "$dirpart/$file" && continue
8729 fdir=`$as_dirname -- "$file" ||
8730 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8731 X"$file" : 'X\(//\)[^/]' \| \
8732 X"$file" : 'X\(//\)$' \| \
8733 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8752 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8753 # echo "creating
$dirpart/$file"
8754 echo '# dummy' > "$dirpart/$file"
8766 ac_clean_files=$ac_clean_files_save
8768 test $ac_write_fail = 0 ||
8769 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8772 # configure is writing to config.log, and then calls config.status.
8773 # config.status does its own redirection, appending to config.log.
8774 # Unfortunately, on DOS this fails, as config.log is still kept open
8775 # by configure, so config.status won't be able to write to it; its
8776 # output is simply discarded. So we exec the FD to /dev/null,
8777 # effectively closing config.log, so it can be properly (re)opened and
8778 # appended to by config.status. When coming back to configure, we
8779 # need to make the FD available again.
8780 if test "$no_create" != yes; then
8782 ac_config_status_args=
8783 test "$silent" = yes &&
8784 ac_config_status_args="$ac_config_status_args --quiet"
8786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8789 # would make configure fail if this is the last instruction.
8790 $ac_cs_success || as_fn_exit 1
8792 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8794 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8798 if test "$enable_dhcpv4o6" = "yes"; then
8799 DHCP_VERSIONS="DHCPv4
, DHCPv6 and DHCPv4-over-DHCPv6
"
8800 elif test "$enable_dhcpv6" != "no
"; then
8801 DHCP_VERSIONS="DHCPv4 and DHCPv6
"
8803 DHCP_VERSIONS="DHCPv4
"
8806 cat > config.report << END
8808 ISC DHCP source configure results:
8809 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8813 Version: $PACKAGE_VERSION
8821 DHCP versions: $DHCP_VERSIONS
8824 debug: $enable_debug
8825 failover: $enable_failover
8826 execute: $enable_execute
8827 binary-leases: $enable_binary_leases
8828 dhcpv6: $enable_dhcpv6
8829 delayed-ack: $enable_delayed_ack
8832 ATF unittests : $atf_path
8835 # TODO: Add Perl system tests
8837 if test "$atf_path" != "no
"
8839 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8840 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8841 echo "ATF_BIN
: $ATF_BIN" >> config.report
8848 echo Now you can type "make" to build ISC DHCP