2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for DHCP 4.3.3.
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.3'
584 PACKAGE_STRING
='DHCP 4.3.3'
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
670 MAINTAINER_MODE_FALSE
684 INSTALL_STRIP_PROGRAM
726 program_transform_name
739 enable_option_checking
741 enable_maintainer_mode
742 enable_dependency_tracking
753 enable_secs_byteorder
773 ac_precious_vars
='build_alias
784 # Initialize some variables set by options.
786 ac_init_version
=false
787 ac_unrecognized_opts
=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
798 program_transform_name
=s
,x
,x
,
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir
='${exec_prefix}/bin'
813 sbindir
='${exec_prefix}/sbin'
814 libexecdir
='${exec_prefix}/libexec'
815 datarootdir
='${prefix}/share'
816 datadir
='${datarootdir}'
817 sysconfdir
='${prefix}/etc'
818 sharedstatedir
='${prefix}/com'
819 localstatedir
='${prefix}/var'
820 includedir
='${prefix}/include'
821 oldincludedir
='/usr/include'
822 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir
='${datarootdir}/info'
828 libdir
='${exec_prefix}/lib'
829 localedir
='${datarootdir}/locale'
830 mandir
='${datarootdir}/man'
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\
$ac_option
844 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
855 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
857 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
860 -build |
--build |
--buil |
--bui |
--bu)
861 ac_prev
=build_alias
;;
862 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
863 build_alias
=$ac_optarg ;;
865 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
866 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
867 ac_prev
=cache_file
;;
868 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
869 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
870 cache_file
=$ac_optarg ;;
873 cache_file
=config.cache
;;
875 -datadir |
--datadir |
--datadi |
--datad)
877 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
878 datadir
=$ac_optarg ;;
880 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
881 |
--dataroo |
--dataro |
--datar)
882 ac_prev
=datarootdir
;;
883 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
884 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
885 datarootdir
=$ac_optarg ;;
887 -disable-* |
--disable-*)
888 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
891 as_fn_error $?
"invalid feature name: $ac_useropt"
892 ac_useropt_orig
=$ac_useropt
893 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep
=', ';;
901 eval enable_
$ac_useropt=no
;;
903 -docdir |
--docdir |
--docdi |
--doc |
--do)
905 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
908 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
910 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
913 -enable-* |
--enable-*)
914 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
917 as_fn_error $?
"invalid feature name: $ac_useropt"
918 ac_useropt_orig
=$ac_useropt
919 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep
=', ';;
927 eval enable_
$ac_useropt=\
$ac_optarg ;;
929 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
930 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
931 |
--exec |
--exe |
--ex)
932 ac_prev
=exec_prefix
;;
933 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
934 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
935 |
--exec=* |
--exe=* |
--ex=*)
936 exec_prefix
=$ac_optarg ;;
938 -gas |
--gas |
--ga |
--g)
939 # Obsolete; use --with-gas.
942 -help |
--help |
--hel |
--he |
-h)
944 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
945 ac_init_help
=recursive
;;
946 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
947 ac_init_help
=short
;;
949 -host |
--host |
--hos |
--ho)
950 ac_prev
=host_alias
;;
951 -host=* |
--host=* |
--hos=* |
--ho=*)
952 host_alias
=$ac_optarg ;;
954 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
956 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
958 htmldir
=$ac_optarg ;;
960 -includedir |
--includedir |
--includedi |
--included |
--include \
961 |
--includ |
--inclu |
--incl |
--inc)
962 ac_prev
=includedir
;;
963 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
964 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
965 includedir
=$ac_optarg ;;
967 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
969 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
970 infodir
=$ac_optarg ;;
972 -libdir |
--libdir |
--libdi |
--libd)
974 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
977 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
978 |
--libexe |
--libex |
--libe)
979 ac_prev
=libexecdir
;;
980 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
981 |
--libexe=* |
--libex=* |
--libe=*)
982 libexecdir
=$ac_optarg ;;
984 -localedir |
--localedir |
--localedi |
--localed |
--locale)
986 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
987 localedir
=$ac_optarg ;;
989 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
990 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
991 ac_prev
=localstatedir
;;
992 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
993 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
994 localstatedir
=$ac_optarg ;;
996 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
998 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 -nfp |
--nfp |
--nf)
1002 # Obsolete; use --without-fp.
1005 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1006 |
--no-cr |
--no-c |
-n)
1009 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1010 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1013 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1014 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1015 |
--oldin |
--oldi |
--old |
--ol |
--o)
1016 ac_prev
=oldincludedir
;;
1017 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1018 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1019 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1020 oldincludedir
=$ac_optarg ;;
1022 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1024 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1025 prefix
=$ac_optarg ;;
1027 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1028 |
--program-pre |
--program-pr |
--program-p)
1029 ac_prev
=program_prefix
;;
1030 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1031 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1032 program_prefix
=$ac_optarg ;;
1034 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1035 |
--program-suf |
--program-su |
--program-s)
1036 ac_prev
=program_suffix
;;
1037 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1038 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1039 program_suffix
=$ac_optarg ;;
1041 -program-transform-name |
--program-transform-name \
1042 |
--program-transform-nam |
--program-transform-na \
1043 |
--program-transform-n |
--program-transform- \
1044 |
--program-transform |
--program-transfor \
1045 |
--program-transfo |
--program-transf \
1046 |
--program-trans |
--program-tran \
1047 |
--progr-tra |
--program-tr |
--program-t)
1048 ac_prev
=program_transform_name
;;
1049 -program-transform-name=* |
--program-transform-name=* \
1050 |
--program-transform-nam=* |
--program-transform-na=* \
1051 |
--program-transform-n=* |
--program-transform-=* \
1052 |
--program-transform=* |
--program-transfor=* \
1053 |
--program-transfo=* |
--program-transf=* \
1054 |
--program-trans=* |
--program-tran=* \
1055 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1056 program_transform_name
=$ac_optarg ;;
1058 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1060 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1061 pdfdir
=$ac_optarg ;;
1063 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1065 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1068 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1069 |
-silent |
--silent |
--silen |
--sile |
--sil)
1072 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1074 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1076 sbindir
=$ac_optarg ;;
1078 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1079 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1080 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1082 ac_prev
=sharedstatedir
;;
1083 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1084 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1085 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1087 sharedstatedir
=$ac_optarg ;;
1089 -site |
--site |
--sit)
1091 -site=* |
--site=* |
--sit=*)
1094 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1096 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1097 srcdir
=$ac_optarg ;;
1099 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1100 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1101 ac_prev
=sysconfdir
;;
1102 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1103 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1104 sysconfdir
=$ac_optarg ;;
1106 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1107 ac_prev
=target_alias
;;
1108 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1109 target_alias
=$ac_optarg ;;
1111 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1114 -version |
--version |
--versio |
--versi |
--vers |
-V)
1115 ac_init_version
=: ;;
1118 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1121 as_fn_error $?
"invalid package name: $ac_useropt"
1122 ac_useropt_orig
=$ac_useropt
1123 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1128 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep
=', ';;
1131 eval with_
$ac_useropt=\
$ac_optarg ;;
1133 -without-* |
--without-*)
1134 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1137 as_fn_error $?
"invalid package name: $ac_useropt"
1138 ac_useropt_orig
=$ac_useropt
1139 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep
=', ';;
1147 eval with_
$ac_useropt=no
;;
1150 # Obsolete; use --with-x.
1153 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1154 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1155 ac_prev
=x_includes
;;
1156 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1157 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1158 x_includes
=$ac_optarg ;;
1160 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1161 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1162 ac_prev
=x_libraries
;;
1163 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1164 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1165 x_libraries
=$ac_optarg ;;
1167 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information"
1172 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1176 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1178 eval $ac_envvar=\
$ac_optarg
1179 export $ac_envvar ;;
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 if test -n "$ac_prev"; then
1193 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error $?
"missing argument to $ac_option"
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1200 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 # Check all directory arguments for consistency.
1206 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val
=\$
$ac_var
1212 # Remove trailing slashes.
1215 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\
$ac_val;;
1218 # Be sure to have absolute directory names.
1220 [\\/$
]* | ?
:[\\/]* ) continue;;
1221 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1223 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1231 target
=$target_alias
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x
; then
1235 if test "x$build_alias" = x
; then
1236 cross_compiling
=maybe
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1245 test "$silent" = yes && exec 6>/dev
/null
1248 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di
=`ls -di .` &&
1250 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $?
"working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $?
"pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted
=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir
=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted
=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1292 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var
in $ac_precious_vars; do
1309 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1311 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures DHCP 4.3.3 to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1385 --build=BUILD configure
for building on BUILD
[guessed
]
1386 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive
) echo "Configuration of DHCP 4.3.3:";;
1397 --disable-option-checking ignore unrecognized
--enable/--with options
1398 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1399 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1400 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1401 --disable-silent-rules verbose build output
(undo
: "make V=0")
1402 --enable-maintainer-mode
1403 enable make rules and dependencies not useful
(and
1404 sometimes confusing
) to the casual installer
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --enable-debug create a debug-only version of the software
(default
1411 --enable-failover enable support
for failover
(default is
yes)
1412 --enable-execute enable support
for execute
() in config
(default is
1414 --enable-tracing enable support
for server activity tracing
(default
1416 --enable-delayed-ack queues multiple DHCPACK replies
(default is no
)
1417 --enable-dhcpv6 enable support
for DHCPv6
(default is
yes)
1418 --enable-paranoia enable support
for chroot
/setuid
(default is no
)
1419 --enable-early-chroot enable chrooting prior to configuration
(default is
1421 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets
(default is
1423 --enable-use-sockets use the standard BSD socket API
(default is no
)
1424 --enable-secs-byteorder Correct bad byteorders
in the secs field
(default is
1426 --enable-log-pid Include PIDs
in syslog messages
(default is no
).
1427 --enable-binary-leases enable support
for binary insertion of leases
1431 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1432 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1433 --with-atf=PATH specify location where atf was installed
(or
"bind")
1434 --with-srv-lease-file=PATH
1435 File
for dhcpd leases
(default is
1436 LOCALSTATEDIR
/db
/dhcpd.leases
)
1437 --with-srv6-lease-file=PATH
1438 File
for dhcpd6 leases
(default is
1439 LOCALSTATEDIR
/db
/dhcpd6.leases
)
1440 --with-cli-lease-file=PATH
1441 File
for dhclient leases
(default is
1442 LOCALSTATEDIR
/db
/dhclient.leases
)
1443 --with-cli6-lease-file=PATH
1444 File
for dhclient6 leases
(default is
1445 LOCALSTATEDIR
/db
/dhclient6.leases
)
1446 --with-srv-pid-file=PATH
1447 File
for dhcpd process information
(default is
1448 LOCALSTATEDIR
/run
/dhcpd.pid
)
1449 --with-srv6-pid-file=PATH
1450 File
for dhcpd6 process information
(default is
1451 LOCALSTATEDIR
/run
/dhcpd6.pid
)
1452 --with-cli-pid-file=PATH
1453 File
for dhclient process information
(default is
1454 LOCALSTATEDIR
/run
/dhclient.pid
)
1455 --with-cli6-pid-file=PATH
1456 File
for dhclient6 process information
(default is
1457 LOCALSTATEDIR
/run
/dhclient6.pid
)
1458 --with-relay-pid-file=PATH
1459 File
for dhcrelay process information
(default is
1460 LOCALSTATEDIR
/run
/dhcrelay.pid
)
1461 --with-relay6-pid-file=PATH
1462 File
for dhcrelay6 process information
(default is
1463 LOCALSTATEDIR
/run
/dhcrelay6.pid
)
1464 --with-libbind=PATH
bind includes and libraries are
in PATH
(default is
1466 --with-ldap enable OpenLDAP support
in dhcpd
(default is no
)
1467 --with-ldapcrypto enable OpenLDAP crypto support
in dhcpd
(default is
1469 --with-ldap-gssapi enable krb
5/gssapi authentication
for OpenLDAP
in
1470 dhcpd
(default is no
)
1471 --with-ldapcasa enable LDAP CASA auth support
in dhcpd
(default is
1474 Some influential environment variables
:
1475 CC C compiler
command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1478 nonstandard directory
<lib dir
>
1479 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1480 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1481 you have headers
in a nonstandard directory
<include dir
>
1484 Use these variables to override the choices made by
`configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to <dhcp-users@isc.org>.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 DHCP configure 4.3.3
1551 generated by GNU Autoconf 2.69
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1574 *) ac_try_echo
=$ac_try;;
1576 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1580 if test -s conftest.err
; then
1581 grep -v '^ *+' conftest.err
>conftest.er1
1582 cat conftest.er1
>&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.
$ac_objext; then :
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.
$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status
$ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1608 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ( $as_echo "## --------------------------------- ##
1710 ## Report this to dhcp-users@isc.org ##
1711 ## --------------------------------- ##"
1712 ) | sed "s/^/$as_me: WARNING: /" >&2
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1720 eval "$3=\$ac_header_compiler"
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_header_mongrel
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1733 # that executables *can* be run.
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_link"
1739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1740 *) ac_try_echo
=$ac_try;;
1742 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1748 { { case "(($ac_try" in
1749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_try") 2>&5
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; }; }; then :
1760 $as_echo "$as_me: program exited with status $ac_status" >&5
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=$ac_status
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1789 if ac_fn_c_try_compile "$LINENO"; then :
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_header_compile
1803 # ac_fn_c_find_intX_t LINENO BITS VAR
1804 # -----------------------------------
1805 # Finds a signed integer type with width BITS, setting cache variable VAR
1807 ac_fn_c_find_intX_t ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1811 $as_echo_n "checking for int$2_t... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1816 # Order is important - never check a type that is potentially smaller
1817 # than half of the expected target width.
1818 for ac_type in int$2_t 'int' 'long int' \
1819 'long long int' 'short int' 'signed char'; do
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $ac_includes_default
1823 enum { N = $2 / 2 - 1 };
1827 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1829 return test_array [0];
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $ac_includes_default
1839 enum { N = $2 / 2 - 1 };
1843 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1844 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1846 return test_array [0];
1852 if ac_fn_c_try_compile "$LINENO"; then :
1859 eval "$3=\$ac_type" ;;
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 if eval test \"x\$"$3"\" = x"no"; then :
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 } # ac_fn_c_find_intX_t
1879 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880 # -------------------------------------------
1881 # Tests whether TYPE exists after having included INCLUDES, setting cache
1882 # variable VAR accordingly.
1883 ac_fn_c_check_type ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1917 if ac_fn_c_try_compile "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_type
1933 # ac_fn_c_find_uintX_t LINENO BITS VAR
1934 # ------------------------------------
1935 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1937 ac_fn_c_find_uintX_t ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1941 $as_echo_n "checking for uint$2_t... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1946 # Order is important - never check a type that is potentially smaller
1947 # than half of the expected target width.
1948 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1949 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $ac_includes_default
1956 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1958 return test_array [0];
1964 if ac_fn_c_try_compile "$LINENO"; then :
1969 eval "$3=\$ac_type" ;;
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 if eval test \"x\$"$3"\" = x"no"; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_find_uintX_t
1987 # ac_fn_c_try_link LINENO
1988 # -----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1997 *) ac_try_echo
=$ac_try;;
1999 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2003 if test -s conftest.err
; then
2004 grep -v '^ *+' conftest.err
>conftest.er1
2005 cat conftest.er1
>&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest
$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest
$ac_exeext
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.
$ac_ext >&5
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status
$ac_retval
2031 } # ac_fn_c_try_link
2033 # ac_fn_c_check_func LINENO FUNC VAR
2034 # ----------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_c_check_func
()
2038 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \
${$3+:} false
; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2048 #define $2 innocuous_$2
2050 /* System header to define __stub macros and hopefully few prototypes,
2051 which can conflict with char $2 (); below.
2052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2053 <limits.h> exists even on freestanding compilers. */
2056 # include <limits.h>
2058 # include <assert.h>
2063 /* Override any GCC internal prototype to avoid an error.
2064 Use char because int might match the return type of a GCC
2065 builtin and then its argument prototype would still apply. */
2070 /* The GNU C library defines this for functions which it implements
2071 to always fail with ENOSYS. Some functions are actually named
2072 something starting with __ and the normal name is an alias. */
2073 #if defined __stub_$2 || defined __stub___$2
2085 if ac_fn_c_try_link
"$LINENO"; then :
2090 rm -f core conftest.err conftest.
$ac_objext \
2091 conftest
$ac_exeext conftest.
$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 } # ac_fn_c_check_func
2100 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2101 # ----------------------------------------------------
2102 # Tries to find if the field MEMBER exists in type AGGR, after including
2103 # INCLUDES, setting cache variable VAR accordingly.
2104 ac_fn_c_check_member
()
2106 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2108 $as_echo_n "checking for $2.$3... " >&6; }
2109 if eval \
${$4+:} false
; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2135 if (sizeof ac_aggr.$3)
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_member
2157 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2158 # --------------------------------------------
2159 # Tries to find the compile-time value of EXPR in a program that includes
2160 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 ac_fn_c_compute_int
()
2164 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2165 if test "$cross_compiling" = yes; then
2166 # Depending upon the size, compute the lo and hi bounds.
2167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) >= 0)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile
"$LINENO"; then :
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile
"$LINENO"; then :
2199 ac_hi
=$ac_mid; break
2201 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2202 if test $ac_lo -le $ac_mid; then
2206 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) < 0)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile
"$LINENO"; then :
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2243 ac_lo
=$ac_mid; break
2245 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2246 if test $ac_mid -le $ac_hi; then
2250 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2260 # Binary search between lo and hi bounds.
2261 while test "x$ac_lo" != "x$ac_hi"; do
2262 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 return test_array [0];
2277 if ac_fn_c_try_compile
"$LINENO"; then :
2280 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2292 static long int longval () { return $2; }
2293 static unsigned long int ulongval () { return $2; }
2300 FILE *f = fopen ("conftest.val", "w");
2305 long int i = longval ();
2308 fprintf (f, "%ld", i);
2312 unsigned long int i = ulongval ();
2315 fprintf (f, "%lu", i);
2317 /* Do not output a trailing newline, as this causes \r\n confusion
2318 on some platforms. */
2319 return ferror (f) || fclose (f) != 0;
2325 if ac_fn_c_try_run
"$LINENO"; then :
2326 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status
$ac_retval
2338 } # ac_fn_c_compute_int
2339 cat >config.log
<<_ACEOF
2340 This file contains any messages produced by compilers while
2341 running configure, to aid debugging if configure makes a mistake.
2343 It was created by DHCP $as_me 4.3.3, which was
2344 generated by GNU Autoconf 2.69. Invocation command line was
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir
=.
2380 $as_echo "PATH: $as_dir"
2396 # Keep a trace of the command line.
2397 # Strip out --no-create and --no-recursion so they do not pile up.
2398 # Strip out --silent because we don't want to record it for future runs.
2399 # Also quote any args containing shell meta-characters.
2400 # Make two passes to allow for proper duplicate-argument suppression.
2404 ac_must_keep_next
=false
2410 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2411 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2412 |
-silent |
--silent |
--silen |
--sile |
--sil)
2415 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2420 as_fn_append ac_configure_args1
" '$ac_arg'"
2421 if test $ac_must_keep_next = true
; then
2422 ac_must_keep_next
=false
# Got value, back to normal.
2425 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2426 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2427 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2428 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2429 case "$ac_configure_args0 " in
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2433 -* ) ac_must_keep_next
=true
;;
2436 as_fn_append ac_configure_args
" '$ac_arg'"
2441 { ac_configure_args0
=; unset ac_configure_args0
;}
2442 { ac_configure_args1
=; unset ac_configure_args1
;}
2444 # When interrupted or exit'd, cleanup temporary files, and complete
2445 # config.log. We remove comments because anyway the quotes in there
2446 # would cause problems or look ugly.
2447 # WARNING: Use '\'' to represent an apostrophe within the trap.
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2449 trap 'exit_status=$?
2450 # Save into config.log some information that might help in debugging.
2454 $as_echo "## ---------------- ##
2455 ## Cache variables. ##
2456 ## ---------------- ##"
2458 # The following way of writing the cache mishandles newlines in values,
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2461 eval ac_val=\$$ac_var
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2469 _ | IFS | as_nl) ;; #(
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2471 *) { eval $ac_var=; unset $ac_var;} ;;
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2477 *${as_nl}ac_space=\ *)
2479 "s/'\''/'\''\\\\'\'''\''/g;
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2490 $as_echo "## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##"
2494 for ac_var in $ac_subst_vars
2496 eval ac_val=\$$ac_var
2498 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 $as_echo "$ac_var='\''$ac_val'\''"
2504 if test -n "$ac_subst_files"; then
2505 $as_echo "## ------------------- ##
2506 ## File substitutions. ##
2507 ## ------------------- ##"
2509 for ac_var
in $ac_subst_files
2511 eval ac_val
=\$
$ac_var
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -s confdefs.h; then
2521 $as_echo "## ----------- ##
2528 test "$ac_signal" != 0 &&
2529 $as_echo "$as_me: caught signal $ac_signal"
2530 $as_echo "$as_me: exit $exit_status"
2532 rm -f core *.core core.conftest.* &&
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2536 for ac_signal
in 1 2 13 15; do
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2542 rm -f -r conftest
* confdefs.h
2544 $as_echo "/* confdefs.h */" > confdefs.h
2546 # Predefined preprocessor variables.
2548 cat >>confdefs.h
<<_ACEOF
2549 #define PACKAGE_NAME "$PACKAGE_NAME"
2552 cat >>confdefs.h
<<_ACEOF
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2556 cat >>confdefs.h
<<_ACEOF
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2560 cat >>confdefs.h
<<_ACEOF
2561 #define PACKAGE_STRING "$PACKAGE_STRING"
2564 cat >>confdefs.h
<<_ACEOF
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2568 cat >>confdefs.h
<<_ACEOF
2569 #define PACKAGE_URL "$PACKAGE_URL"
2573 # Let the site file select an alternate cache file if it wants to.
2574 # Prefer an explicitly selected file to automatically selected ones.
2577 if test -n "$CONFIG_SITE"; then
2578 # We do not want a PATH search for config.site.
2579 case $CONFIG_SITE in #((
2580 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2581 */*) ac_site_file1
=$CONFIG_SITE;;
2582 *) ac_site_file1
=.
/$CONFIG_SITE;;
2584 elif test "x$prefix" != xNONE
; then
2585 ac_site_file1
=$prefix/share
/config.site
2586 ac_site_file2
=$prefix/etc
/config.site
2588 ac_site_file1
=$ac_default_prefix/share
/config.site
2589 ac_site_file2
=$ac_default_prefix/etc
/config.site
2591 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2593 test "x$ac_site_file" = xNONE
&& continue
2594 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2599 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 as_fn_error $?
"failed to load site script $ac_site_file
2602 See \`config.log' for more details" "$LINENO" 5; }
2606 if test -r "$cache_file"; then
2607 # Some versions of bash will fail to source /dev/null (special files
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2609 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2611 $as_echo "$as_me: loading cache $cache_file" >&6;}
2613 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2614 *) .
"./$cache_file";;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2619 $as_echo "$as_me: creating cache $cache_file" >&6;}
2623 # Check that the precious variables saved in the cache have kept the same
2625 ac_cache_corrupted
=false
2626 for ac_var
in $ac_precious_vars; do
2627 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2628 eval ac_new_set
=\
$ac_env_${ac_var}_set
2629 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2630 eval ac_new_val
=\
$ac_env_${ac_var}_value
2631 case $ac_old_set,$ac_new_set in
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2635 ac_cache_corrupted
=: ;;
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2639 ac_cache_corrupted
=: ;;
2642 if test "x$ac_old_val" != "x$ac_new_val"; then
2643 # differences in whitespace do not lead to failure.
2644 ac_old_val_w
=`echo x $ac_old_val`
2645 ac_new_val_w
=`echo x $ac_new_val`
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2649 ac_cache_corrupted
=:
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2653 eval $ac_var=\
$ac_old_val
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2661 # Pass precious variables to config.status.
2662 if test "$ac_new_set" = set; then
2664 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2665 *) ac_arg
=$ac_var=$ac_new_val ;;
2667 case " $ac_configure_args " in
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2669 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2673 if $ac_cache_corrupted; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2678 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2680 ## -------------------- ##
2681 ## Main body of script. ##
2682 ## -------------------- ##
2685 ac_cpp
='$CPP $CPPFLAGS'
2686 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2692 # we specify "foreign" to avoid having to have the GNU mandated files,
2693 # like AUTHORS, COPYING, and such
2694 am__api_version
='1.15'
2697 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2698 if test -f "$ac_dir/install-sh"; then
2700 ac_install_sh
="$ac_aux_dir/install-sh -c"
2702 elif test -f "$ac_dir/install.sh"; then
2704 ac_install_sh
="$ac_aux_dir/install.sh -c"
2706 elif test -f "$ac_dir/shtool"; then
2708 ac_install_sh
="$ac_aux_dir/shtool install -c"
2712 if test -z "$ac_aux_dir"; then
2713 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2716 # These three variables are undocumented and unsupported,
2717 # and are intended to be withdrawn in a future Autoconf release.
2718 # They can cause serious problems if a builder's source tree is in a directory
2719 # whose full name contains unusual characters.
2720 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2721 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2722 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2725 # Find a good install program. We prefer a C program (faster),
2726 # so one script is as good as another. But avoid the broken or
2727 # incompatible versions:
2728 # SysV /etc/install, /usr/sbin/install
2729 # SunOS /usr/etc/install
2730 # IRIX /sbin/install
2732 # AmigaOS /C/install, which installs bootblocks on floppy discs
2733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2736 # OS/2's system install, which has a completely different semantic
2737 # ./install, which can be erroneously created by make from ./install.sh.
2738 # Reject install programs that cannot install multiple files.
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2740 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2741 if test -z "$INSTALL"; then
2742 if ${ac_cv_path_install+:} false
; then :
2743 $as_echo_n "(cached) " >&6
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 # Account for people who put trailing slashes in PATH elements.
2751 case $as_dir/ in #((
2752 .
/ | .
// |
/[cC
]/* | \
2753 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2754 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2757 # OSF1 and SCO ODT 3.0 have their own names for install.
2758 # Don't use installbsd from OSF since it installs stuff as root
2760 for ac_prog
in ginstall scoinst
install; do
2761 for ac_exec_ext
in '' $ac_executable_extensions; do
2762 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2763 if test $ac_prog = install &&
2764 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2765 # AIX install. It has an incompatible calling convention.
2767 elif test $ac_prog = install &&
2768 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2769 # program-specific install script used by HP pwplus--don't use.
2772 rm -rf conftest.one conftest.two conftest.dir
2773 echo one
> conftest.one
2774 echo two
> conftest.two
2776 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2777 test -s conftest.one
&& test -s conftest.two
&&
2778 test -s conftest.dir
/conftest.one
&&
2779 test -s conftest.dir
/conftest.two
2781 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2794 rm -rf conftest.one conftest.two conftest.dir
2797 if test "${ac_cv_path_install+set}" = set; then
2798 INSTALL
=$ac_cv_path_install
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for INSTALL within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 INSTALL
=$ac_install_sh
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2808 $as_echo "$INSTALL" >&6; }
2810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2811 # It thinks the first close brace ends the variable substitution.
2812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2814 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2816 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2819 $as_echo_n "checking whether build environment is sane... " >&6; }
2820 # Reject unsafe characters in $srcdir or the absolute working directory
2821 # name. Accept space and tab only in the latter.
2825 *[\\\"\
#\$\&\'\`$am_lf]*)
2826 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2829 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2830 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2833 # Do 'set' in a subshell so we don't clobber the current shell's
2834 # arguments. Must try -L first in case configure is actually a
2835 # symlink; some systems play weird games with the mod time of symlinks
2836 # (eg FreeBSD returns the mod time of the symlink's containing
2840 for am_try
in 1 2; do
2841 echo "timestamp, slept: $am_has_slept" > conftest.
file
2842 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2843 if test "$*" = "X"; then
2845 set X
`ls -t "$srcdir/configure" conftest.file`
2847 if test "$*" != "X $srcdir/configure conftest.file" \
2848 && test "$*" != "X conftest.file $srcdir/configure"; then
2850 # If neither matched, then we have a broken ls. This can happen
2851 # if, for instance, CONFIG_SHELL is bash and it inherits a
2852 # broken ls alias from the environment. This has actually
2853 # happened. Such a system could not be considered "sane".
2854 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2857 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2864 test "$2" = conftest.
file
2870 as_fn_error $?
"newly created file is older than distributed files!
2871 Check your system clock" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875 # If we didn't sleep, we still need to ensure time stamps of config.status and
2876 # generated files are strictly newer.
2878 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2885 test "$program_prefix" != NONE
&&
2886 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2887 # Use a double $ so make ignores it.
2888 test "$program_suffix" != NONE
&&
2889 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2890 # Double any \ or $.
2891 # By default was `s,x,x', remove it if useless.
2892 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2893 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2895 # Expand $ac_aux_dir to an absolute path.
2896 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2898 if test x
"${MISSING+set}" != xset
; then
2901 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2903 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2906 # Use eval to expand $SHELL
2907 if eval "$MISSING --is-lightweight"; then
2908 am_missing_run
="$MISSING "
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2912 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2915 if test x
"${install_sh+set}" != xset
; then
2918 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2920 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2924 # Installed binaries are usually stripped using 'strip' when the user
2925 # run "make install-strip". However 'strip' might not be the right
2926 # tool to use in cross-compilation environments, therefore Automake
2927 # will honor the 'STRIP' environment variable to overrule this program.
2928 if test "$cross_compiling" != no
; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2931 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_STRIP+:} false
; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$STRIP"; then
2938 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir
=.
2945 for ac_exec_ext
in '' $ac_executable_extensions; do
2946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 STRIP
=$ac_cv_prog_STRIP
2958 if test -n "$STRIP"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2960 $as_echo "$STRIP" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$ac_cv_prog_STRIP"; then
2970 # Extract the first word of "strip", so it can be a program name with args.
2971 set dummy strip
; ac_word
=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$ac_ct_STRIP"; then
2978 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir
=.
2985 for ac_exec_ext
in '' $ac_executable_extensions; do
2986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_STRIP
="strip"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2998 if test -n "$ac_ct_STRIP"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3000 $as_echo "$ac_ct_STRIP" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3006 if test "x$ac_ct_STRIP" = x
; then
3009 case $cross_compiling:$ac_tool_warned in
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned
=yes ;;
3018 STRIP
="$ac_cv_prog_STRIP"
3022 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3025 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3026 if test -z "$MKDIR_P"; then
3027 if ${ac_cv_path_mkdir+:} false
; then :
3028 $as_echo_n "(cached) " >&6
3030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3031 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3034 test -z "$as_dir" && as_dir
=.
3035 for ac_prog
in mkdir gmkdir
; do
3036 for ac_exec_ext
in '' $ac_executable_extensions; do
3037 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3038 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3039 'mkdir (GNU coreutils) '* | \
3040 'mkdir (coreutils) '* | \
3041 'mkdir (fileutils) '4.1*)
3042 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3052 test -d .
/--version && rmdir .
/--version
3053 if test "${ac_cv_path_mkdir+set}" = set; then
3054 MKDIR_P
="$ac_cv_path_mkdir -p"
3056 # As a last resort, use the slow shell script. Don't cache a
3057 # value for MKDIR_P within a source directory, because that will
3058 # break other packages using the cache if that directory is
3059 # removed, or if the value is a relative name.
3060 MKDIR_P
="$ac_install_sh -d"
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3064 $as_echo "$MKDIR_P" >&6; }
3066 for ac_prog
in gawk mawk nawk
awk
3068 # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy
$ac_prog; ac_word
=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if ${ac_cv_prog_AWK+:} false
; then :
3073 $as_echo_n "(cached) " >&6
3075 if test -n "$AWK"; then
3076 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir
=.
3083 for ac_exec_ext
in '' $ac_executable_extensions; do
3084 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_AWK
="$ac_prog"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 if test -n "$AWK"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3098 $as_echo "$AWK" >&6; }
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3105 test -n "$AWK" && break
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3109 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3111 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3112 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3113 $as_echo_n "(cached) " >&6
3115 cat >conftest.
make <<\_ACEOF
3118 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3120 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3121 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3123 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3125 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3129 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 SET_MAKE
="MAKE=${MAKE-make}"
3139 rm -rf .tst
2>/dev
/null
3140 mkdir .tst
2>/dev
/null
3141 if test -d .tst
; then
3146 rmdir .tst
2>/dev
/null
3148 # Check whether --enable-silent-rules was given.
3149 if test "${enable_silent_rules+set}" = set; then :
3150 enableval
=$enable_silent_rules;
3153 case $enable_silent_rules in # (((
3154 yes) AM_DEFAULT_VERBOSITY
=0;;
3155 no
) AM_DEFAULT_VERBOSITY
=1;;
3156 *) AM_DEFAULT_VERBOSITY
=1;;
3158 am_make
=${MAKE-make}
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3160 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3161 if ${am_cv_make_support_nested_variables+:} false
; then :
3162 $as_echo_n "(cached) " >&6
3164 if $as_echo 'TRUE=$(BAR$(V))
3170 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3171 am_cv_make_support_nested_variables
=yes
3173 am_cv_make_support_nested_variables
=no
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3177 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3178 if test $am_cv_make_support_nested_variables = yes; then
3180 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3182 AM_V
=$AM_DEFAULT_VERBOSITY
3183 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189 # is not polluted with repeated "-I."
3190 am__isrc
=' -I$(srcdir)'
3191 # test to see if srcdir already configured
3192 if test -f $srcdir/config.status
; then
3193 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3200 CYGPATH_W
='cygpath -w'
3207 # Define the identity of the package.
3212 cat >>confdefs.h
<<_ACEOF
3213 #define PACKAGE "$PACKAGE"
3217 cat >>confdefs.h
<<_ACEOF
3218 #define VERSION "$VERSION"
3221 # Some tools Automake needs.
3223 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3226 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3229 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3232 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3235 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3237 # For better backward compatibility. To be removed once Automake 1.9.x
3238 # dies out for good. For more background, see:
3239 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3240 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3241 mkdir_p
='$(MKDIR_P)'
3243 # We need awk for the "check" target (and possibly the TAP driver). The
3244 # system "awk" is bad on some platforms.
3245 # Always define AMTAR for backward compatibility. Yes, it's still used
3246 # in the wild :-( We should find a proper way to deprecate it ...
3250 # We'll loop over all known methods to create a tar archive until one works.
3251 _am_tools
='gnutar pax cpio none'
3253 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3260 # POSIX will say in a future version that running "rm -f" with no argument
3261 # is OK; and we want to be able to make that assumption in our Makefile
3262 # recipes. So use an aggressive probe to check that the usage we want is
3263 # actually supported "in the wild" to an acceptable degree.
3264 # See automake bug#10828.
3265 # To make any issue more visible, cause the running configure to be aborted
3266 # by default if the 'rm' program in use doesn't match our expectations; the
3267 # user can still override this though.
3268 if rm -f && rm -fr && rm -rf; then : OK
; else
3272 Your 'rm' program seems unable to run without file operands specified
3273 on the command line, even when the '-f' option is present. This is contrary
3274 to the behaviour of most rm programs out there, and not conforming with
3275 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3277 Please tell bug-automake@gnu.org about your system, including the value
3278 of your $PATH and any error possibly output before this message. This
3279 can help us improve future automake versions.
3282 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3283 echo 'Configuration will proceed anyway, since you have set the' >&2
3284 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3288 Aborting the configuration process, to ensure you take notice of the issue.
3290 You can download and install GNU coreutils to get an 'rm' implementation
3291 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3293 If you want to complete the configuration process using your problematic
3294 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3295 to "yes", and re-run configure.
3298 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3303 # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding
3304 # the configure and makefiles. Without it users doing things that
3305 # change the timestamps on the code, like checking it into a cvs
3306 # tree, could trigger a rebuild of the infrastructure files which
3307 # might fail if they don't have the correct tools.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3310 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3311 # Check whether --enable-maintainer-mode was given.
3312 if test "${enable_maintainer_mode+set}" = set; then :
3313 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3315 USE_MAINTAINER_MODE
=no
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3319 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3320 if test $USE_MAINTAINER_MODE = yes; then
3321 MAINTAINER_MODE_TRUE
=
3322 MAINTAINER_MODE_FALSE
='#'
3324 MAINTAINER_MODE_TRUE
='#'
3325 MAINTAINER_MODE_FALSE
=
3328 MAINT
=$MAINTAINER_MODE_TRUE
3332 # Make sure we can run config.sub.
3333 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3334 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3337 $as_echo_n "checking build system type... " >&6; }
3338 if ${ac_cv_build+:} false
; then :
3339 $as_echo_n "(cached) " >&6
3341 ac_build_alias
=$build_alias
3342 test "x$ac_build_alias" = x
&&
3343 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3344 test "x$ac_build_alias" = x
&&
3345 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3346 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3347 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3351 $as_echo "$ac_cv_build" >&6; }
3352 case $ac_cv_build in
3354 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3357 ac_save_IFS
=$IFS; IFS
='-'
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3367 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3371 $as_echo_n "checking host system type... " >&6; }
3372 if ${ac_cv_host+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if test "x$host_alias" = x
; then
3376 ac_cv_host
=$ac_cv_build
3378 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3379 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3384 $as_echo "$ac_cv_host" >&6; }
3387 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3390 ac_save_IFS
=$IFS; IFS
='-'
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3400 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3404 # We want to turn on warnings if we are using gcc and the user did
3405 # not specify CFLAGS. The autoconf check for the C compiler sets the
3406 # CFLAGS if gcc is used, so we will save it before we run that check.
3407 SAVE_CFLAGS
="$CFLAGS"
3409 # Now find our C compiler.
3411 ac_cpp
='$CPP $CPPFLAGS'
3412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3415 if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC
="$CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for ac_exec_ext
in '' $ac_executable_extensions; do
3432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3454 if test -z "$ac_cv_prog_CC"; then
3456 # Extract the first word of "gcc", so it can be a program name with args.
3457 set dummy gcc
; ac_word
=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$ac_ct_CC"; then
3464 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_ac_ct_CC
="gcc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3484 if test -n "$ac_ct_CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3486 $as_echo "$ac_ct_CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3492 if test "x$ac_ct_CC" = x
; then
3495 case $cross_compiling:$ac_tool_warned in
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned
=yes ;;
3507 if test -z "$CC"; then
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3510 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_CC+:} false
; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC
="$CC" # Let the user override the test.
3519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir
=.
3524 for ac_exec_ext
in '' $ac_executable_extensions; do
3525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 if test -n "$CC"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3548 if test -z "$CC"; then
3549 # Extract the first word of "cc", so it can be a program name with args.
3550 set dummy cc
; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_CC+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC
="$CC" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3568 ac_prog_rejected
=yes
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test $ac_prog_rejected = yes; then
3580 # We found a bogon in the path, so make sure we never use it.
3581 set dummy
$ac_cv_prog_CC
3583 if test $# != 0; then
3584 # We chose a different compiler from the bogus one.
3585 # However, it has the same basename, so the bogon will be chosen
3586 # first if we set CC to just the basename; use the full file name.
3588 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3604 if test -z "$CC"; then
3605 if test -n "$ac_tool_prefix"; then
3606 for ac_prog
in cl.exe
3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false
; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC
="$CC" # Let the user override the test.
3618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir
=.
3623 for ac_exec_ext
in '' $ac_executable_extensions; do
3624 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3645 test -n "$CC" && break
3648 if test -z "$CC"; then
3650 for ac_prog
in cl.exe
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy
$ac_prog; ac_word
=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3657 $as_echo_n "(cached) " >&6
3659 if test -n "$ac_ct_CC"; then
3660 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir
=.
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_ac_ct_CC
="$ac_prog"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3680 if test -n "$ac_ct_CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3682 $as_echo "$ac_ct_CC" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3689 test -n "$ac_ct_CC" && break
3692 if test "x$ac_ct_CC" = x
; then
3695 case $cross_compiling:$ac_tool_warned in
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned
=yes ;;
3708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $?
"no acceptable C compiler found in \$PATH
3711 See \`config.log' for more details" "$LINENO" 5; }
3713 # Provide some information about the compiler.
3714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3717 for ac_option
in --version -v -V -qversion; do
3718 { { ac_try
="$ac_compiler $ac_option >&5"
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3727 if test -s conftest.err; then
3729 ... rest of stderr output deleted ...
3730 10q' conftest.err >conftest.er1
3731 cat conftest.er1 >&5
3733 rm -f conftest.er1 conftest.err
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3749 ac_clean_files_save=$ac_clean_files
3750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3751 # Try to create an executable without -o first, disregard a.out.
3752 # It will help us diagnose broken compilers, and finding out an intuition
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3755 $as_echo_n "checking whether the C compiler works... " >&6; }
3756 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3758 # The possible output files:
3759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3762 for ac_file in $ac_files
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3771 if { { ac_try="$ac_link_default"
3773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3774 *) ac_try_echo
=$ac_try;;
3776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_link_default") 2>&5
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3785 # so that the user can short-circuit this test for compilers unknown to
3787 for ac_file
in $ac_files ''
3789 test -f "$ac_file" ||
continue
3791 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3794 # We found the default executable, but exeext='' is most
3798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3800 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3802 # We set ac_cv_exeext here because the later test for it is not
3803 # safe: cross compilers may not add the suffix if given an `-o'
3804 # argument, so we may need to know it at that point already.
3805 # Even if this section looks crufty: it has the advantage of
3812 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3817 if test -z "$ac_file"; then :
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.
$ac_ext >&5
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error
77 "C compiler cannot create executables
3826 See \`config.log' for more details" "$LINENO" 5; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3829 $as_echo "yes" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3834 $as_echo "$ac_file" >&6; }
3835 ac_exeext
=$ac_cv_exeext
3837 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3838 ac_clean_files
=$ac_clean_files_save
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3840 $as_echo_n "checking for suffix of executables... " >&6; }
3841 if { { ac_try
="$ac_link"
3843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 $as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_link") 2>&5
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3853 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3854 # work properly (i.e., refer to `conftest.exe'), while it won't with
3856 for ac_file
in conftest.exe conftest conftest.
*; do
3857 test -f "$ac_file" ||
continue
3859 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3860 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 rm -f conftest conftest
$ac_cv_exeext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3873 $as_echo "$ac_cv_exeext" >&6; }
3875 rm -f conftest.
$ac_ext
3876 EXEEXT
=$ac_cv_exeext
3878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3884 FILE *f = fopen ("conftest.out", "w");
3885 return ferror (f) || fclose (f) != 0;
3891 ac_clean_files
="$ac_clean_files conftest.out"
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 if test "$cross_compiling" != yes; then
3897 { { ac_try
="$ac_link"
3899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link") 2>&5
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }
3908 if { ac_try='./conftest$ac_cv_exeext'
3909 { { case "(($ac_try" in
3910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3911 *) ac_try_echo
=$ac_try;;
3913 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_try") 2>&5
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }; }; then
3921 if test "$cross_compiling" = maybe
; then
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error $?
"cannot run C compiled programs.
3927 If you meant to cross compile, use \`--host'.
3928 See \`config.log' for more details" "$LINENO" 5; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3933 $as_echo "$cross_compiling" >&6; }
3935 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3936 ac_clean_files
=$ac_clean_files_save
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3938 $as_echo_n "checking for suffix of object files... " >&6; }
3939 if ${ac_cv_objext+:} false
; then :
3940 $as_echo_n "(cached) " >&6
3942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 rm -f conftest.o conftest.obj
3954 if { { ac_try
="$ac_compile"
3956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_compile") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 for ac_file in conftest.o conftest.obj conftest.*; do
3966 test -f "$ac_file" || continue;
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974 $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3980 See \
`config.log' for more details" "$LINENO" 5; }
3982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985 $as_echo "$ac_cv_objext" >&6; }
3986 OBJEXT=$ac_cv_objext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3990 if ${ac_cv_c_compiler_gnu+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4007 if ac_fn_c_try_compile "$LINENO"; then :
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4018 if test $ac_compiler_gnu = yes; then
4023 ac_test_CFLAGS=${CFLAGS+set}
4024 ac_save_CFLAGS=$CFLAGS
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4027 if ${ac_cv_prog_cc_g+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 ac_save_c_werror_flag=$ac_c_werror_flag
4031 ac_c_werror_flag=yes
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4045 if ac_fn_c_try_compile "$LINENO"; then :
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_c_werror_flag=$ac_save_c_werror_flag
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4087 $as_echo "$ac_cv_prog_cc_g" >&6; }
4088 if test "$ac_test_CFLAGS" = set; then
4089 CFLAGS=$ac_save_CFLAGS
4090 elif test $ac_cv_prog_cc_g = yes; then
4091 if test "$GCC" = yes; then
4097 if test "$GCC" = yes; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4105 if ${ac_cv_prog_cc_c89+:} false; then :
4106 $as_echo_n "(cached) " >&6
4108 ac_cv_prog_cc_c89=no
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4116 struct buf { int x; };
4117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4118 static char *e (p, i)
4124 static char *f (char * (*g) (char **, int), char **p, ...)
4129 s = g (p, va_arg (v,int));
4134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4135 function prototypes and stuff, but not '\xHH' hex character constants.
4136 These don't provoke an error unfortunately, instead are silently treated
4137 as 'x'. The following induces an error, until -std is added to get
4138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4139 array size at least. It's necessary to write '\x00'==0 to get something
4140 that's true only with -std. */
4141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4143 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4144 inside strings and character constants. */
4146 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4148 int test (int i, double x);
4149 struct s1 {int (*f) (int a);};
4150 struct s2 {int (*f) (double a);};
4151 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4162 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4165 CC="$ac_save_CC $ac_arg"
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_c89=$ac_arg
4169 rm -f core conftest.err conftest.$ac_objext
4170 test "x$ac_cv_prog_cc_c89" != "xno" && break
4172 rm -f conftest.$ac_ext
4177 case "x$ac_cv_prog_cc_c89" in
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 $as_echo "none needed" >&6; } ;;
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4183 $as_echo "unsupported" >&6; } ;;
4185 CC="$CC $ac_cv_prog_cc_c89"
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4187 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4189 if test "x$ac_cv_prog_cc_c89" != xno; then :
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4205 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4206 if ${am_cv_prog_cc_c_o+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 # Make sure it works both with $CC and with simple cc.
4221 # Following AC_PROG_CC_C_O, we do the test twice because some
4222 # compilers refuse to overwrite an existing .o file with -o,
4223 # though they will create one.
4224 am_cv_prog_cc_c_o=yes
4226 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4227 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } \
4231 && test -f conftest2.$ac_objext; then
4234 am_cv_prog_cc_c_o=no
4238 rm -f core conftest*
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4242 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4243 if test "$am_cv_prog_cc_c_o" != yes; then
4244 # Losing compiler, so override with the script.
4245 # FIXME: It is wrong to rewrite CC.
4246 # But if we don't then we get into trouble of one sort or another.
4247 # A longer-term fix would be to have automake use am__CC in this case,
4248 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4249 CC="$am_aux_dir/compile $CC"
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 DEPDIR="${am__leading_dot}deps"
4259 ac_config_commands="$ac_config_commands depfiles"
4262 am_make=${MAKE-make}
4263 cat > confinc << 'END'
4265 @echo this is the am__doit target
4268 # If we don't find an include directive, just comment out the code.
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4270 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4274 # First try GNU make style include.
4275 echo "include confinc" > confmf
4276 # Ignore all kinds of additional output from 'make'.
4277 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4278 *the\ am__doit\ target*)
4284 # Now try BSD make style include.
4285 if test "$am__include" = "#"; then
4286 echo '.include "confinc"' > confmf
4287 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4288 *the\ am__doit\ target*)
4289 am__include=.include
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4298 $as_echo "$_am_result" >&6; }
4299 rm -f confinc confmf
4301 # Check whether --enable-dependency-tracking was given.
4302 if test "${enable_dependency_tracking+set}" = set; then :
4303 enableval=$enable_dependency_tracking;
4306 if test "x$enable_dependency_tracking" != xno; then
4307 am_depcomp="$ac_aux_dir/depcomp"
4311 if test "x$enable_dependency_tracking" != xno; then
4321 depcc="$CC" am_compiler_list=
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4324 $as_echo_n "checking dependency style of $depcc... " >&6; }
4325 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4329 # We make a subdir and do the tests there. Otherwise we can end up
4330 # making bogus files that we don't know about and never remove. For
4331 # instance it was reported that on HP-UX the gcc test will end up
4332 # making a dummy file named 'D' -- because '-MD' means "put the output
4336 # Copy depcomp to subdir because otherwise we won't find it if we're
4337 # using a relative directory.
4338 cp "$am_depcomp" conftest.dir
4340 # We will build objects and dependencies in a subdirectory because
4341 # it helps to detect inapplicable dependency modes. For instance
4342 # both Tru64's cc and ICC support -MD to output dependencies as a
4343 # side effect of compilation, but ICC will put the dependencies in
4344 # the current directory while Tru64 will put them in the object
4348 am_cv_CC_dependencies_compiler_type=none
4349 if test "$am_compiler_list" = ""; then
4350 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4353 case " $depcc " in #(
4354 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 for depmode in $am_compiler_list; do
4358 # Setup a source with many dependencies, because some compilers
4359 # like to wrap large dependency lists on column 80 (with \), and
4360 # we should not choose a depcomp mode which is confused by this.
4362 # We need to recreate these files for each test, as the compiler may
4363 # overwrite some of them when testing with obscure command lines.
4364 # This happens at least with the AIX C compiler.
4366 for i in 1 2 3 4 5 6; do
4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4368 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4369 # Solaris 10 /bin/sh.
4370 echo '/* dummy */' > sub/conftst$i.h
4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4374 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4375 # mode. It turns out that the SunPro C++ compiler does not properly
4376 # handle '-M -o', and we need to detect this. Also, some Intel
4377 # versions had trouble with output in subdirs.
4378 am__obj=sub/conftest.${OBJEXT-o}
4379 am__minus_obj="-o $am__obj"
4382 # This depmode causes a compiler race in universal mode.
4383 test "$am__universal" = false || continue
4386 # After this tag, mechanisms are not by side-effect, so they'll
4387 # only be used when explicitly requested.
4388 if test "x$enable_dependency_tracking" = xyes; then
4394 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4395 # This compiler won't grok '-c -o', but also, the minuso test has
4396 # not run yet. These depmodes are late enough in the game, and
4397 # so weak that their functioning should not be impacted.
4398 am__obj=conftest.${OBJEXT-o}
4403 if depmode=$depmode \
4404 source=sub/conftest.c object=$am__obj \
4405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4407 >/dev/null 2>conftest.err &&
4408 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412 # icc doesn't choke on unknown options, it will just issue warnings
4413 # or remarks (even with -Werror). So we grep stderr for any message
4414 # that says an option was ignored or not supported.
4415 # When given -MP, icc 7.0 and 7.1 complain thusly:
4416 # icc: Command line warning: ignoring option '-M'; no argument required
4417 # The diagnosis changed in icc 8.0:
4418 # icc: Command line remark: option '-MP' not supported
4419 if (grep 'ignoring option' conftest.err ||
4420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421 am_cv_CC_dependencies_compiler_type=$depmode
4430 am_cv_CC_dependencies_compiler_type=none
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4435 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439 test "x$enable_dependency_tracking" != xno \
4440 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442 am__fastdepCC_FALSE='#'
4444 am__fastdepCC_TRUE='#'
4445 am__fastdepCC_FALSE=
4450 # Suppress warnings about --datarootdir
4453 # If we have gcc, and AC_PROG_CC changed the flags, then we know the
4454 # user did not specify any flags. Add warnings in this case.
4455 if test "$GCC" = "yes"; then
4456 if test "$CFLAGS" != "$SAVE_CFLAGS"; then
4457 STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing"
4461 # We can have some flags to pass to bind configure
4465 # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
4466 # parts of the IPv6 Advanced Socket API as a result. This is stupid
4467 # as it breaks how the two halves (Basic and Advanced) of the IPv6
4468 # Socket API were designed to be used but we have to live with it.
4469 # Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4477 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4478 # On Suns, sometimes $CPP names a directory.
4479 if test -n "$CPP" && test -d "$CPP"; then
4482 if test -z "$CPP"; then
4483 if ${ac_cv_prog_CPP+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 # Double quotes because CPP needs to be expanded
4487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4490 for ac_c_preproc_warn_flag in '' yes
4492 # Use a header file that comes with gcc, so configuring glibc
4493 # with a fresh cross-compiler works.
4494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495 # <limits.h> exists even on freestanding compilers.
4496 # On the NeXT, cc -E runs the code through the compiler's parser,
4497 # not just through cpp. "Syntax error" is here to catch this case.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 # include <limits.h>
4503 # include <assert.h>
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4510 # Broken: fails on valid input.
4513 rm -f conftest.err conftest.i conftest.$ac_ext
4515 # OK, works on sane cases. Now check whether nonexistent headers
4516 # can be detected and how.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <ac_nonexistent.h>
4521 if ac_fn_c_try_cpp "$LINENO"; then :
4522 # Broken: success on invalid input.
4525 # Passes both tests.
4529 rm -f conftest.err conftest.i conftest.$ac_ext
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.i conftest.err conftest.
$ac_ext
4534 if $ac_preproc_ok; then :
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4547 $as_echo "$CPP" >&6; }
4549 for ac_c_preproc_warn_flag
in '' yes
4551 # Use a header file that comes with gcc, so configuring glibc
4552 # with a fresh cross-compiler works.
4553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4554 # <limits.h> exists even on freestanding compilers.
4555 # On the NeXT, cc -E runs the code through the compiler's parser,
4556 # not just through cpp. "Syntax error" is here to catch this case.
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 # include <limits.h>
4562 # include <assert.h>
4566 if ac_fn_c_try_cpp
"$LINENO"; then :
4569 # Broken: fails on valid input.
4572 rm -f conftest.err conftest.i conftest.
$ac_ext
4574 # OK, works on sane cases. Now check whether nonexistent headers
4575 # can be detected and how.
4576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578 #include <ac_nonexistent.h>
4580 if ac_fn_c_try_cpp
"$LINENO"; then :
4581 # Broken: success on invalid input.
4584 # Passes both tests.
4588 rm -f conftest.err conftest.i conftest.
$ac_ext
4591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4592 rm -f conftest.i conftest.err conftest.
$ac_ext
4593 if $ac_preproc_ok; then :
4596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4598 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4599 See \`config.log' for more details" "$LINENO" 5; }
4603 ac_cpp
='$CPP $CPPFLAGS'
4604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4610 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4611 if ${ac_cv_path_GREP+:} false
; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -z "$GREP"; then
4615 ac_path_GREP_found
=false
4616 # Loop through the user's path and test for each of PROGNAME-LIST
4617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4618 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4621 test -z "$as_dir" && as_dir
=.
4622 for ac_prog
in grep ggrep
; do
4623 for ac_exec_ext
in '' $ac_executable_extensions; do
4624 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4625 as_fn_executable_p
"$ac_path_GREP" ||
continue
4626 # Check for GNU ac_path_GREP and select it if it is found.
4627 # Check for GNU $ac_path_GREP
4628 case `"$ac_path_GREP" --version 2>&1` in
4630 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4633 $as_echo_n 0123456789 >"conftest.in"
4636 cat "conftest.in" "conftest.in" >"conftest.tmp"
4637 mv "conftest.tmp" "conftest.in"
4638 cp "conftest.in" "conftest.nl"
4639 $as_echo 'GREP' >> "conftest.nl"
4640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4641 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4642 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4643 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4644 # Best one so far, save it but keep looking for a better one
4645 ac_cv_path_GREP
="$ac_path_GREP"
4646 ac_path_GREP_max
=$ac_count
4648 # 10*(2^10) chars as input seems more than enough
4649 test $ac_count -gt 10 && break
4651 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4654 $ac_path_GREP_found && break 3
4659 if test -z "$ac_cv_path_GREP"; then
4660 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4663 ac_cv_path_GREP
=$GREP
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4668 $as_echo "$ac_cv_path_GREP" >&6; }
4669 GREP
="$ac_cv_path_GREP"
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4673 $as_echo_n "checking for egrep... " >&6; }
4674 if ${ac_cv_path_EGREP+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4678 then ac_cv_path_EGREP
="$GREP -E"
4680 if test -z "$EGREP"; then
4681 ac_path_EGREP_found
=false
4682 # Loop through the user's path and test for each of PROGNAME-LIST
4683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4687 test -z "$as_dir" && as_dir
=.
4688 for ac_prog
in egrep; do
4689 for ac_exec_ext
in '' $ac_executable_extensions; do
4690 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4691 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4692 # Check for GNU ac_path_EGREP and select it if it is found.
4693 # Check for GNU $ac_path_EGREP
4694 case `"$ac_path_EGREP" --version 2>&1` in
4696 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4699 $as_echo_n 0123456789 >"conftest.in"
4702 cat "conftest.in" "conftest.in" >"conftest.tmp"
4703 mv "conftest.tmp" "conftest.in"
4704 cp "conftest.in" "conftest.nl"
4705 $as_echo 'EGREP' >> "conftest.nl"
4706 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4708 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4709 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4710 # Best one so far, save it but keep looking for a better one
4711 ac_cv_path_EGREP
="$ac_path_EGREP"
4712 ac_path_EGREP_max
=$ac_count
4714 # 10*(2^10) chars as input seems more than enough
4715 test $ac_count -gt 10 && break
4717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4720 $ac_path_EGREP_found && break 3
4725 if test -z "$ac_cv_path_EGREP"; then
4726 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729 ac_cv_path_EGREP
=$EGREP
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4735 $as_echo "$ac_cv_path_EGREP" >&6; }
4736 EGREP
="$ac_cv_path_EGREP"
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4740 $as_echo_n "checking for ANSI C header files... " >&6; }
4741 if ${ac_cv_header_stdc+:} false
; then :
4742 $as_echo_n "(cached) " >&6
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4759 if ac_fn_c_try_compile
"$LINENO"; then :
4760 ac_cv_header_stdc
=yes
4762 ac_cv_header_stdc
=no
4764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "memchr" >/dev
/null
2>&1; then :
4777 ac_cv_header_stdc
=no
4783 if test $ac_cv_header_stdc = yes; then
4784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "free" >/dev
/null
2>&1; then :
4794 ac_cv_header_stdc
=no
4800 if test $ac_cv_header_stdc = yes; then
4801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4802 if test "$cross_compiling" = yes; then :
4805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4809 #if ((' ' & 0x0FF) == 0x020)
4810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4813 # define ISLOWER(c) \
4814 (('a' <= (c) && (c) <= 'i') \
4815 || ('j' <= (c) && (c) <= 'r') \
4816 || ('s' <= (c) && (c) <= 'z'))
4817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4825 for (i = 0; i < 256; i++)
4826 if (XOR (islower (i), ISLOWER (i))
4827 || toupper (i) != TOUPPER (i))
4832 if ac_fn_c_try_run
"$LINENO"; then :
4835 ac_cv_header_stdc
=no
4837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4844 $as_echo "$ac_cv_header_stdc" >&6; }
4845 if test $ac_cv_header_stdc = yes; then
4847 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4851 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4852 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4853 inttypes.h stdint.h unistd.h
4855 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4856 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4858 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4859 cat >>confdefs.h
<<_ACEOF
4860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4870 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4877 if test "$MINIX" = yes; then
4879 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4882 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4885 $as_echo "#define _MINIX 1" >>confdefs.h
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4891 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4892 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4898 # define __EXTENSIONS__ 1
4899 $ac_includes_default
4908 if ac_fn_c_try_compile
"$LINENO"; then :
4909 ac_cv_safe_to_define___extensions__
=yes
4911 ac_cv_safe_to_define___extensions__
=no
4913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4916 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4917 test $ac_cv_safe_to_define___extensions__ = yes &&
4918 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4920 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4922 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4924 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4926 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4932 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_RANLIB+:} false
; then :
4936 $as_echo_n "(cached) " >&6
4938 if test -n "$RANLIB"; then
4939 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir
=.
4946 for ac_exec_ext
in '' $ac_executable_extensions; do
4947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 RANLIB
=$ac_cv_prog_RANLIB
4959 if test -n "$RANLIB"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4961 $as_echo "$RANLIB" >&6; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4969 if test -z "$ac_cv_prog_RANLIB"; then
4970 ac_ct_RANLIB
=$RANLIB
4971 # Extract the first word of "ranlib", so it can be a program name with args.
4972 set dummy ranlib
; ac_word
=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$ac_ct_RANLIB"; then
4979 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir
=.
4986 for ac_exec_ext
in '' $ac_executable_extensions; do
4987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4999 if test -n "$ac_ct_RANLIB"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5001 $as_echo "$ac_ct_RANLIB" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_ct_RANLIB" = x
; then
5010 case $cross_compiling:$ac_tool_warned in
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned
=yes ;;
5016 RANLIB
=$ac_ct_RANLIB
5019 RANLIB
="$ac_cv_prog_RANLIB"
5022 ac_config_headers
="$ac_config_headers includes/config.h"
5025 # we sometimes need to know byte order for building packets
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5027 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5028 if ${ac_cv_c_bigendian+:} false
; then :
5029 $as_echo_n "(cached) " >&6
5031 ac_cv_c_bigendian
=unknown
5032 # See if we're dealing with a universal compiler.
5033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #ifndef __APPLE_CC__
5036 not a universal capable compiler
5041 if ac_fn_c_try_compile
"$LINENO"; then :
5043 # Check for potential -arch flags. It is not universal unless
5044 # there are at least two -arch flags with different values.
5047 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5048 if test -n "$ac_prev"; then
5050 i?
86 | x86_64 | ppc | ppc64
)
5051 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5054 ac_cv_c_bigendian
=universal
5060 elif test "x$ac_word" = "x-arch"; then
5065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5066 if test $ac_cv_c_bigendian = unknown
; then
5067 # See if sys/param.h defines the BYTE_ORDER macro.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <sys/types.h>
5071 #include <sys/param.h>
5076 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5077 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5086 if ac_fn_c_try_compile
"$LINENO"; then :
5087 # It does; now see whether it defined to BIG_ENDIAN or not.
5088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 #include <sys/types.h>
5091 #include <sys/param.h>
5096 #if BYTE_ORDER != BIG_ENDIAN
5104 if ac_fn_c_try_compile
"$LINENO"; then :
5105 ac_cv_c_bigendian
=yes
5107 ac_cv_c_bigendian
=no
5109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5113 if test $ac_cv_c_bigendian = unknown
; then
5114 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5122 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5130 if ac_fn_c_try_compile
"$LINENO"; then :
5131 # It does; now see whether it defined to _BIG_ENDIAN or not.
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5147 if ac_fn_c_try_compile
"$LINENO"; then :
5148 ac_cv_c_bigendian
=yes
5150 ac_cv_c_bigendian
=no
5152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5156 if test $ac_cv_c_bigendian = unknown
; then
5157 # Compile a test program.
5158 if test "$cross_compiling" = yes; then :
5159 # Try to guess by grepping values from an object file.
5160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 short int ascii_mm[] =
5163 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5164 short int ascii_ii[] =
5165 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5166 int use_ascii (int i) {
5167 return ascii_mm[i] + ascii_ii[i];
5169 short int ebcdic_ii[] =
5170 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5171 short int ebcdic_mm[] =
5172 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5173 int use_ebcdic (int i) {
5174 return ebcdic_mm[i] + ebcdic_ii[i];
5181 return use_ascii (foo) == use_ebcdic (foo);
5186 if ac_fn_c_try_compile
"$LINENO"; then :
5187 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5188 ac_cv_c_bigendian
=yes
5190 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5191 if test "$ac_cv_c_bigendian" = unknown
; then
5192 ac_cv_c_bigendian
=no
5194 # finding both strings is unlikely to happen, but who knows?
5195 ac_cv_c_bigendian
=unknown
5199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 $ac_includes_default
5208 /* Are we little or big endian? From Harbison&Steele. */
5212 char c[sizeof (long int)];
5215 return u.c[sizeof (long int) - 1] == 1;
5221 if ac_fn_c_try_run
"$LINENO"; then :
5222 ac_cv_c_bigendian
=no
5224 ac_cv_c_bigendian
=yes
5226 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5227 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5233 $as_echo "$ac_cv_c_bigendian" >&6; }
5234 case $ac_cv_c_bigendian in #(
5236 byte_order
=BIG_ENDIAN
5239 byte_order
=LITTLE_ENDIAN
5243 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5247 as_fn_error $?
"unknown endianness
5248 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5252 cat >>confdefs.h
<<_ACEOF
5253 #define DHCP_BYTE_ORDER $byte_order
5257 # Optional compile-time DEBUGging.
5258 # Check whether --enable-debug was given.
5259 if test "${enable_debug+set}" = set; then :
5260 enableval
=$enable_debug; case "${enableval}" in
5261 yes) enable_debug
=yes
5263 $as_echo "#define DEBUG 1" >>confdefs.h
5265 # Just override CFLAGS totally to remove optimization.
5267 no
) enable_debug
=no
;;
5268 *) as_fn_error $?
"bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5275 # XXX: there are actually quite a lot more DEBUG_ features we could enable,
5276 # but I don't want to pollute the --help space.
5278 #/* #define DEBUG_TOKENS */
5279 #/* #define DEBUG_PACKET */
5280 #/* #define DEBUG_EXPRESSIONS */
5281 #/* #define DEBUG_FIND_LEASE */
5282 #/* #define DEBUG_EXPRESSION_PARSE */
5283 #/* #define DEBUG_CLASS_MATCHING */
5284 #/* #define DEBUG_MEMORY_LEAKAGE */
5285 #/* #define DEBUG_MALLOC_POOL */
5286 #/* #define DEBUG_LEASE_STATE_TRANSITIONS */
5287 #/* #define DEBUG_RC_HISTORY */
5288 #/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */
5289 #/* #define RC_HISTORY_MAX 10240 */
5290 #/* #define POINTER_DEBUG */
5291 #/* #define DEBUG_FAILOVER_MESSAGES */
5292 #/* #define DEBUG_FAILOVER_TIMING */
5293 #/* #define DEBUG_DUMP_ALL_LEASES */
5295 # Failover optional compile-time feature.
5296 # Check whether --enable-failover was given.
5297 if test "${enable_failover+set}" = set; then :
5298 enableval
=$enable_failover;
5301 # Failover is on by default, so define if it is not explicitly disabled.
5302 if test "$enable_failover" != "no"; then
5303 enable_failover
="yes"
5305 $as_echo "#define FAILOVER_PROTOCOL 1" >>confdefs.h
5309 # execute() support.
5310 # Check whether --enable-execute was given.
5311 if test "${enable_execute+set}" = set; then :
5312 enableval
=$enable_execute;
5315 # execute() is on by default, so define if it is not explicitly disabled.
5316 if test "$enable_execute" != "no" ; then
5317 enable_execute
="yes"
5319 $as_echo "#define ENABLE_EXECUTE 1" >>confdefs.h
5323 # Server tracing support.
5324 # Check whether --enable-tracing was given.
5325 if test "${enable_tracing+set}" = set; then :
5326 enableval
=$enable_tracing;
5329 # tracing is on by default, so define if it is not explicitly disabled.
5330 if test "$enable_tracing" != "no" ; then
5332 $as_echo "#define TRACING 1" >>confdefs.h
5336 # Delayed-ack feature support (experimental).
5337 # Check whether --enable-delayed_ack was given.
5338 if test "${enable_delayed_ack+set}" = set; then :
5339 enableval
=$enable_delayed_ack;
5342 if test "$enable_delayed_ack" = "yes"; then
5344 $as_echo "#define DELAYED_ACK 1" >>confdefs.h
5347 enable_delayed_ack
="no"
5350 # DHCPv6 optional compile-time feature.
5351 # Check whether --enable-dhcpv6 was given.
5352 if test "${enable_dhcpv6+set}" = set; then :
5353 enableval
=$enable_dhcpv6;
5356 # DHCPv6 is on by default, so define if it is not explicitly disabled.
5357 if test "$enable_dhcpv6" != "no"; then
5360 $as_echo "#define DHCPv6 1" >>confdefs.h
5364 # PARANOIA is off by default (until we can test it with all features)
5365 # Check whether --enable-paranoia was given.
5366 if test "${enable_paranoia+set}" = set; then :
5367 enableval
=$enable_paranoia;
5370 # Check whether --enable-early_chroot was given.
5371 if test "${enable_early_chroot+set}" = set; then :
5372 enableval
=$enable_early_chroot;
5375 # If someone enables early chroot, but does not enable paranoia, do so for
5377 if test "$enable_paranoia" != "yes" && \
5378 test "$enable_early_chroot" = "yes" ; then
5379 enable_paranoia
="yes"
5382 if test "$enable_paranoia" = "yes" ; then
5384 $as_echo "#define PARANOIA 1" >>confdefs.h
5387 if test "$enable_early_chroot" = "yes" ; then
5389 $as_echo "#define EARLY_CHROOT 1" >>confdefs.h
5393 # Check whether --enable-ipv4_pktinfo was given.
5394 if test "${enable_ipv4_pktinfo+set}" = set; then :
5395 enableval
=$enable_ipv4_pktinfo;
5399 if test "$enable_ipv4_pktinfo" = "yes"; then
5401 $as_echo "#define USE_V4_PKTINFO 1" >>confdefs.h
5405 # Check whether --enable-use_sockets was given.
5406 if test "${enable_use_sockets+set}" = set; then :
5407 enableval
=$enable_use_sockets;
5411 if test "$enable_use_sockets" = "yes"; then
5413 $as_echo "#define USE_SOCKETS 1" >>confdefs.h
5417 # Try to hnadle incorrect byte order for secs field
5418 # This is off by default
5419 # Check whether --enable-secs_byteorder was given.
5420 if test "${enable_secs_byteorder+set}" = set; then :
5421 enableval
=$enable_secs_byteorder;
5425 if test "$enable_secs_byteorder" = "yes" ; then
5427 $as_echo "#define SECS_BYTEORDER 1" >>confdefs.h
5431 # Include the PID in the log messages. This is useful when there may
5432 # be multiple instances of a program.
5433 # This is off by default
5434 # Check whether --enable-log_pid was given.
5435 if test "${enable_log_pid+set}" = set; then :
5436 enableval
=$enable_log_pid;
5439 if test "$enable_log_pid" = "yes" ; then
5441 $as_echo "#define USE_LOG_PID 1" >>confdefs.h
5445 # Allow for binary search when inserting v4 leases into queues
5446 # Check whether --enable-binary_leases was given.
5447 if test "${enable_binary_leases+set}" = set; then :
5448 enableval
=$enable_binary_leases;
5451 # binary_leases is off by default.
5452 if test "$enable_binary_leases" = "yes"; then
5454 $as_echo "#define BINARY_LEASES 1" >>confdefs.h
5457 enable_binary_leases
="no"
5464 # Check whether --with-atf was given.
5465 if test "${with_atf+set}" = set; then :
5466 withval
=$with_atf; atf_path
="$withval"
5469 if test "$atf_path" = "bind"; then
5477 if test "$atf_path" = "bind" ; then
5479 atf_path
="\${top_srcdir}/bind/atf"
5480 ATF_CFLAGS
="-I$atf_path/include -DUNIT_TEST"
5481 ATF_LDFLAGS
="-L$atf_path/lib -latf-c"
5482 ATF_BIN
=`pwd`/bind
/atf
/bin
5486 BINDCONFIG
="$BINDCONFIG --with-atf"
5487 elif test "$atf_path" != "no" ; then
5488 # Config path for pkg-config
5490 if test "$atf_path" != "yes" ; then
5491 if test -f $atf_path/lib
/pkgconfig
/atf-c.pc
; then
5492 atf_pcp
=$atf_path/lib
/pkgconfig
5493 elif test -f $atf_path/lib64
/pkgconfig
/atf-c.pc
; then
5494 atf_pcp
=$atf_path/lib64
/pkgconfig
5497 # Not specified, try some common paths
5498 atf_dirs
="/usr /usr/local /usr/pkg /opt /opt/local"
5501 if test -f $d/lib
/pkgconfig
/atf-c.pc
; then
5502 atf_pcp
=$d/lib
/pkgconfig
5504 elif test -f $d/lib64
/pkgconfig
/atf-c.pc
; then
5505 atf_pcp
=$d/lib64
/pkgconfig
5511 if test "$atf_pcp" = "" ; then
5512 as_fn_error $?
"Unable to find atf files in location specified" "$LINENO" 5
5514 ATF_CFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST"
5515 ATF_LDFLAGS
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`"
5516 if test -f $atf_pcp/atf-sh.pc
; then
5517 ATF_BIN
="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin"
5519 # older versions don't have atf-sh, try usual place
5520 ATF_BIN
=$atf_path/bin
5523 if test ! -x $ATF_BIN/atf-run
-o ! -x $ATF_BIN/atf-report
; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: atf-run,atf-report not found, assuming they are in your path" >&5
5525 $as_echo "$as_me: WARNING: atf-run,atf-report not found, assuming they are in your path" >&2;}
5534 if test "$atf_pcp" != ""; then
5542 if test -z "$HAVE_ATF_TRUE"; then :
5544 $as_echo "#define HAVE_ATF 1" >>confdefs.h
5549 ### Path fun. Older versions of DHCP were installed in /usr/sbin, so we
5550 ### need to look there and potentially overwrite by default (but not if
5551 ### the user configures an alternate value). LOCALSTATEDIR is totally
5552 ### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and
5553 ### they would be insane for suggesting it. We need to look in /var/for
5554 ### 'db' and 'state/dhcp' for db files, and /var/run for pid files by
5557 if test "x$prefix" = xNONE
; then
5558 $as_echo_n "checking for prefix by " >&6
5559 # Extract the first word of "dhcpd", so it can be a program name with args.
5560 set dummy dhcpd
; ac_word
=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_path_ac_prefix_program+:} false
; then :
5564 $as_echo_n "(cached) " >&6
5566 case $ac_prefix_program in
5568 ac_cv_path_ac_prefix_program
="$ac_prefix_program" # Let the user override the test with a path.
5571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir
=.
5576 for ac_exec_ext
in '' $ac_executable_extensions; do
5577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_path_ac_prefix_program
="$as_dir/$ac_word$ac_exec_ext"
5579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 ac_prefix_program
=$ac_cv_path_ac_prefix_program
5590 if test -n "$ac_prefix_program"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
5592 $as_echo "$ac_prefix_program" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 if test -n "$ac_prefix_program"; then
5600 prefix
=`$as_dirname -- "$ac_prefix_program" ||
5601 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5602 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
5603 X"$ac_prefix_program" : 'X\(//\)$' \| \
5604 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
5605 $as_echo X"$ac_prefix_program" |
5606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5623 prefix
=`$as_dirname -- "$prefix" ||
5624 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5625 X"$prefix" : 'X\(//\)[^/]' \| \
5626 X"$prefix" : 'X\(//\)$' \| \
5627 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
5628 $as_echo X"$prefix" |
5629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5650 # XXX - isn't there SOME WAY to default autoconf to /var instead of
5651 # /usr/local/var/no/one/has/this/please/stop/trying?
5652 case "$localstatedir" in
5658 # Allow specification of alternate state files
5660 # Check whether --with-srv-lease-file was given.
5661 if test "${with_srv_lease_file+set}" = set; then :
5662 withval
=$with_srv_lease_file;
5663 cat >>confdefs.h
<<_ACEOF
5664 #define _PATH_DHCPD_DB "$withval"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd.leases location" >&5
5671 $as_echo_n "checking for dhcpd.leases location... " >&6; }
5672 if [ "x$with_srv_lease_file" = "x" ] ; then
5673 if [ -d "${localstatedir}/db" ] ; then
5674 with_srv_lease_file
="${localstatedir}/db/dhcpd.leases"
5675 elif [ -d "${localstatedir}/state" ] ; then
5676 if [ -d "${localstatedir}/state/dhcp" ] ; then
5677 with_srv_lease_file
="${localstatedir}/state/dhcp/dhcpd.leases"
5679 with_srv_lease_file
="${localstatedir}/state/dhcpd.leases"
5681 elif [ -d "${localstatedir}/lib" ] ; then
5682 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5683 with_srv_lease_file
="${localstatedir}/lib/dhcp/dhcpd.leases"
5685 with_srv_lease_file
="${localstatedir}/lib/dhcpd.leases"
5687 elif [ -d "${localstatedir}/etc" ] ; then
5688 with_srv_lease_file
="${localstatedir}/etc/dhcpd.leases"
5690 with_srv_lease_file
="/etc/dhcpd.leases"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv_lease_file" >&5
5694 $as_echo "$with_srv_lease_file" >&6; }
5697 # Check whether --with-srv6-lease-file was given.
5698 if test "${with_srv6_lease_file+set}" = set; then :
5699 withval
=$with_srv6_lease_file;
5700 cat >>confdefs.h
<<_ACEOF
5701 #define _PATH_DHCPD6_DB "$withval"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhcpd6.leases location" >&5
5708 $as_echo_n "checking for dhcpd6.leases location... " >&6; }
5709 if [ "x$with_srv6_lease_file" = "x" ] ; then
5710 if [ -d "${localstatedir}/db" ] ; then
5711 with_srv6_lease_file
="${localstatedir}/db/dhcpd6.leases"
5712 elif [ -d "${localstatedir}/state" ] ; then
5713 if [ -d "${localstatedir}/state/dhcp" ] ; then
5714 with_srv6_lease_file
="${localstatedir}/state/dhcp/dhcpd6.leases"
5716 with_srv6_lease_file
="${localstatedir}/state/dhcpd6.leases"
5718 elif [ -d "${localstatedir}/lib" ] ; then
5719 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5720 with_srv6_lease_file
="${localstatedir}/lib/dhcp/dhcpd6.leases"
5722 with_srv6_lease_file
="${localstatedir}/lib/dhcpd6.leases"
5724 elif [ -d "${localstatedir}/etc" ] ; then
5725 with_srv6_lease_file
="${localstatedir}/etc/dhcpd6.leases"
5727 with_srv6_lease_file
="/etc/dhcpd6.leases"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_srv6_lease_file" >&5
5731 $as_echo "$with_srv6_lease_file" >&6; }
5734 # Check whether --with-cli-lease-file was given.
5735 if test "${with_cli_lease_file+set}" = set; then :
5736 withval
=$with_cli_lease_file;
5737 cat >>confdefs.h
<<_ACEOF
5738 #define _PATH_DHCLIENT_DB "$withval"
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient.leases location" >&5
5745 $as_echo_n "checking for dhclient.leases location... " >&6; }
5746 if [ "x$with_cli_lease_file" = "x" ] ; then
5747 if [ -d "${localstatedir}/db" ] ; then
5748 with_cli_lease_file
="${localstatedir}/db/dhclient.leases"
5749 elif [ -d "${localstatedir}/state" ] ; then
5750 if [ -d "${localstatedir}/state/dhcp" ] ; then
5751 with_cli_lease_file
="${localstatedir}/state/dhcp/dhclient.leases"
5753 with_cli_lease_file
="${localstatedir}/state/dhclient.leases"
5755 elif [ -d "${localstatedir}/lib" ] ; then
5756 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5757 with_cli_lease_file
="${localstatedir}/lib/dhcp/dhclient.leases"
5759 with_cli_lease_file
="${localstatedir}/lib/dhclient.leases"
5761 elif [ -d "${localstatedir}/etc" ] ; then
5762 with_cli_lease_file
="${localstatedir}/etc/dhclient.leases"
5764 with_cli_lease_file
="/etc/dhclient.leases"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli_lease_file" >&5
5768 $as_echo "$with_cli_lease_file" >&6; }
5771 # Check whether --with-cli6-lease-file was given.
5772 if test "${with_cli6_lease_file+set}" = set; then :
5773 withval
=$with_cli6_lease_file;
5774 cat >>confdefs.h
<<_ACEOF
5775 #define _PATH_DHCLIENT6_DB "$withval"
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dhclient6.leases location" >&5
5782 $as_echo_n "checking for dhclient6.leases location... " >&6; }
5783 if [ "x$with_cli6_lease_file" = "x" ] ; then
5784 if [ -d "${localstatedir}/db" ] ; then
5785 with_cli6_lease_file
="${localstatedir}/db/dhclient6.leases"
5786 elif [ -d "${localstatedir}/state" ] ; then
5787 if [ -d "${localstatedir}/state/dhcp" ] ; then
5788 with_cli6_lease_file
="${localstatedir}/state/dhcp/dhclient6.leases"
5790 with_cli6_lease_file
="${localstatedir}/state/dhclient6.leases"
5792 elif [ -d "${localstatedir}/lib" ] ; then
5793 if [ -d "${localstatedir}/lib/dhcp" ] ; then
5794 with_cli6_lease_file
="${localstatedir}/lib/dhcp/dhclient6.leases"
5796 with_cli6_lease_file
="${localstatedir}/lib/dhclient6.leases"
5798 elif [ -d "${localstatedir}/etc" ] ; then
5799 with_cli6_lease_file
="${localstatedir}/etc/dhclient6.leases"
5801 with_cli6_lease_file
="/etc/dhclient6.leases"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cli6_lease_file" >&5
5805 $as_echo "$with_cli6_lease_file" >&6; }
5808 # Check whether --with-srv-pid-file was given.
5809 if test "${with_srv_pid_file+set}" = set; then :
5810 withval
=$with_srv_pid_file;
5811 cat >>confdefs.h
<<_ACEOF
5812 #define _PATH_DHCPD_PID "$withval"
5818 # Check whether --with-srv6-pid-file was given.
5819 if test "${with_srv6_pid_file+set}" = set; then :
5820 withval
=$with_srv6_pid_file;
5821 cat >>confdefs.h
<<_ACEOF
5822 #define _PATH_DHCPD6_PID "$withval"
5828 # Check whether --with-cli-pid-file was given.
5829 if test "${with_cli_pid_file+set}" = set; then :
5830 withval
=$with_cli_pid_file;
5831 cat >>confdefs.h
<<_ACEOF
5832 #define _PATH_DHCLIENT_PID "$withval"
5838 # Check whether --with-cli6-pid-file was given.
5839 if test "${with_cli6_pid_file+set}" = set; then :
5840 withval
=$with_cli6_pid_file;
5841 cat >>confdefs.h
<<_ACEOF
5842 #define _PATH_DHCLIENT6_PID "$withval"
5848 # Check whether --with-relay-pid-file was given.
5849 if test "${with_relay_pid_file+set}" = set; then :
5850 withval
=$with_relay_pid_file;
5851 cat >>confdefs.h
<<_ACEOF
5852 #define _PATH_DHCRELAY_PID "$withval"
5858 # Check whether --with-relay6-pid-file was given.
5859 if test "${with_relay6_pid_file+set}" = set; then :
5860 withval
=$with_relay6_pid_file;
5861 cat >>confdefs.h
<<_ACEOF
5862 #define _PATH_DHCRELAY6_PID "$withval"
5868 # Check basic types.
5869 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5870 case $ac_cv_c_int8_t in #(
5874 cat >>confdefs.h
<<_ACEOF
5875 #define int8_t $ac_cv_c_int8_t
5880 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5881 case $ac_cv_c_int16_t in #(
5885 cat >>confdefs.h
<<_ACEOF
5886 #define int16_t $ac_cv_c_int16_t
5891 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5892 case $ac_cv_c_int32_t in #(
5896 cat >>confdefs.h
<<_ACEOF
5897 #define int32_t $ac_cv_c_int32_t
5902 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5903 case $ac_cv_c_int64_t in #(
5907 cat >>confdefs.h
<<_ACEOF
5908 #define int64_t $ac_cv_c_int64_t
5914 # Some systems need the u_intX_t types defined across.
5915 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5916 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
5920 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5921 case $ac_cv_c_uint8_t in #(
5925 $as_echo "#define _UINT8_T 1" >>confdefs.h
5928 cat >>confdefs.h
<<_ACEOF
5929 #define uint8_t $ac_cv_c_uint8_t
5935 $as_echo "#define u_int8_t uint8_t" >>confdefs.h
5940 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5941 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
5945 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5946 case $ac_cv_c_uint16_t in #(
5951 cat >>confdefs.h
<<_ACEOF
5952 #define uint16_t $ac_cv_c_uint16_t
5958 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
5963 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5964 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
5968 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5969 case $ac_cv_c_uint32_t in #(
5973 $as_echo "#define _UINT32_T 1" >>confdefs.h
5976 cat >>confdefs.h
<<_ACEOF
5977 #define uint32_t $ac_cv_c_uint32_t
5983 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
5988 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
5989 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
5993 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5994 case $ac_cv_c_uint64_t in #(
5998 $as_echo "#define _UINT64_T 1" >>confdefs.h
6001 cat >>confdefs.h
<<_ACEOF
6002 #define uint64_t $ac_cv_c_uint64_t
6008 $as_echo "#define u_int64_t uint64_t" >>confdefs.h
6014 # see if ifaddrs.h is available
6015 for ac_header
in ifaddrs.h
6017 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6018 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6019 cat >>confdefs.h
<<_ACEOF
6020 #define HAVE_IFADDRS_H 1
6028 # figure out what IPv4 interface code to use
6029 for ac_header
in linux
/types.h
6031 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
6032 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
6033 cat >>confdefs.h
<<_ACEOF
6034 #define HAVE_LINUX_TYPES_H 1
6040 # needed for linux/filter.h on old systems
6042 ac_fn_c_check_header_compile
"$LINENO" "linux/filter.h" "ac_cv_header_linux_filter_h" "
6043 #ifdef HAVE_LINUX_TYPES_H
6044 #include <linux/types.h>
6048 if test "x$ac_cv_header_linux_filter_h" = xyes
; then :
6053 if test -n "$DO_LPF"
6056 $as_echo "#define HAVE_LPF 1" >>confdefs.h
6059 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dlpi.h" "ac_cv_header_sys_dlpi_h" "$ac_includes_default"
6060 if test "x$ac_cv_header_sys_dlpi_h" = xyes
; then :
6065 if test -n "$DO_DLPI"
6068 $as_echo "#define HAVE_DLPI 1" >>confdefs.h
6071 ac_fn_c_check_header_mongrel
"$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_net_bpf_h" = xyes
; then :
6077 if test -n "$DO_BPF"
6080 $as_echo "#define HAVE_BPF 1" >>confdefs.h
6086 # SIOCGLIFCONF uses some transport structures. Trick is not all platforms
6087 # use the same structures. We like to use 'struct lifconf' and 'struct
6088 # lifreq', but we'll use these other structures if they're present. HPUX
6089 # does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifnum" >&5
6093 $as_echo_n "checking for struct lifnum... " >&6; }
6094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/socket.h>
6109 if ac_fn_c_try_compile
"$LINENO"; then :
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6111 $as_echo "yes" >&6; }
6113 $as_echo "#define ISC_PLATFORM_HAVELIFNUM 1" >>confdefs.h
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
6122 $as_echo_n "checking for struct if_laddrconf... " >&6; }
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <net/if6.h>
6131 struct if_laddrconf a;
6137 if ac_fn_c_try_compile
"$LINENO"; then :
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139 $as_echo "yes" >&6; }
6141 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
6150 $as_echo_n "checking for struct if_laddrreq... " >&6; }
6151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <sys/types.h>
6154 #include <net/if6.h>
6159 struct if_laddrreq a;
6165 if ac_fn_c_try_link
"$LINENO"; then :
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6167 $as_echo "yes" >&6; }
6169 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6175 rm -f core conftest.err conftest.
$ac_objext \
6176 conftest
$ac_exeext conftest.
$ac_ext
6179 # check for GCC noreturn attribute
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
6182 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6189 void foo() __attribute__((noreturn));
6194 if ac_fn_c_try_compile
"$LINENO"; then :
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6196 $as_echo "yes" >&6; }
6198 $as_echo "#define ISC_DHCP_NORETURN __attribute__((noreturn))" >>confdefs.h
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6204 $as_echo "#define ISC_DHCP_NORETURN /**/" >>confdefs.h
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 # Look for optional headers.
6210 for ac_header
in sys
/socket.h net
/if_dl.h net
/if6.h regex.h
6212 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6214 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6215 cat >>confdefs.h
<<_ACEOF
6216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224 # Solaris needs some libraries for functions
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6226 $as_echo_n "checking for library containing socket... " >&6; }
6227 if ${ac_cv_search_socket+:} false
; then :
6228 $as_echo_n "(cached) " >&6
6230 ac_func_search_save_LIBS
=$LIBS
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6249 for ac_lib
in '' socket
; do
6250 if test -z "$ac_lib"; then
6251 ac_res
="none required"
6254 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6256 if ac_fn_c_try_link
"$LINENO"; then :
6257 ac_cv_search_socket
=$ac_res
6259 rm -f core conftest.err conftest.
$ac_objext \
6261 if ${ac_cv_search_socket+:} false
; then :
6265 if ${ac_cv_search_socket+:} false
; then :
6268 ac_cv_search_socket
=no
6271 LIBS
=$ac_func_search_save_LIBS
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6274 $as_echo "$ac_cv_search_socket" >&6; }
6275 ac_res
=$ac_cv_search_socket
6276 if test "$ac_res" != no
; then :
6277 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6282 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6283 if ${ac_cv_search_inet_ntoa+:} false
; then :
6284 $as_echo_n "(cached) " >&6
6286 ac_func_search_save_LIBS
=$LIBS
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6300 return inet_ntoa ();
6305 for ac_lib
in '' nsl
; do
6306 if test -z "$ac_lib"; then
6307 ac_res
="none required"
6310 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6312 if ac_fn_c_try_link
"$LINENO"; then :
6313 ac_cv_search_inet_ntoa
=$ac_res
6315 rm -f core conftest.err conftest.
$ac_objext \
6317 if ${ac_cv_search_inet_ntoa+:} false
; then :
6321 if ${ac_cv_search_inet_ntoa+:} false
; then :
6324 ac_cv_search_inet_ntoa
=no
6327 LIBS
=$ac_func_search_save_LIBS
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6330 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6331 ac_res
=$ac_cv_search_inet_ntoa
6332 if test "$ac_res" != no
; then :
6333 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
6339 $as_echo_n "checking for library containing inet_aton... " >&6; }
6340 if ${ac_cv_search_inet_aton+:} false
; then :
6341 $as_echo_n "(cached) " >&6
6343 ac_func_search_save_LIBS
=$LIBS
6344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6347 /* Override any GCC internal prototype to avoid an error.
6348 Use char because int might match the return type of a GCC
6349 builtin and then its argument prototype would still apply. */
6357 return inet_aton ();
6362 for ac_lib
in '' socket nsl
; do
6363 if test -z "$ac_lib"; then
6364 ac_res
="none required"
6367 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6369 if ac_fn_c_try_link
"$LINENO"; then :
6370 ac_cv_search_inet_aton
=$ac_res
6372 rm -f core conftest.err conftest.
$ac_objext \
6374 if ${ac_cv_search_inet_aton+:} false
; then :
6378 if ${ac_cv_search_inet_aton+:} false
; then :
6381 ac_cv_search_inet_aton
=no
6384 LIBS
=$ac_func_search_save_LIBS
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
6387 $as_echo "$ac_cv_search_inet_aton" >&6; }
6388 ac_res
=$ac_cv_search_inet_aton
6389 if test "$ac_res" != no
; then :
6390 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6394 $as_echo "#define NEED_INET_ATON 1" >>confdefs.h
6399 # Check for a standalone regex library.
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
6401 $as_echo_n "checking for library containing regcomp... " >&6; }
6402 if ${ac_cv_search_regcomp+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 ac_func_search_save_LIBS
=$LIBS
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6424 for ac_lib
in '' regex
; do
6425 if test -z "$ac_lib"; then
6426 ac_res
="none required"
6429 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6431 if ac_fn_c_try_link
"$LINENO"; then :
6432 ac_cv_search_regcomp
=$ac_res
6434 rm -f core conftest.err conftest.
$ac_objext \
6436 if ${ac_cv_search_regcomp+:} false
; then :
6440 if ${ac_cv_search_regcomp+:} false
; then :
6443 ac_cv_search_regcomp
=no
6446 LIBS
=$ac_func_search_save_LIBS
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
6449 $as_echo "$ac_cv_search_regcomp" >&6; }
6450 ac_res
=$ac_cv_search_regcomp
6451 if test "$ac_res" != no
; then :
6452 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6457 for ac_func
in strlcat
6459 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
6460 if test "x$ac_cv_func_strlcat" = xyes
; then :
6461 cat >>confdefs.h
<<_ACEOF
6462 #define HAVE_STRLCAT 1
6469 # For HP/UX we need -lipv6 for if_nametoindex, perhaps others.
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
6471 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
6472 if ${ac_cv_search_if_nametoindex+:} false
; then :
6473 $as_echo_n "(cached) " >&6
6475 ac_func_search_save_LIBS
=$LIBS
6476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6479 /* Override any GCC internal prototype to avoid an error.
6480 Use char because int might match the return type of a GCC
6481 builtin and then its argument prototype would still apply. */
6485 char if_nametoindex ();
6489 return if_nametoindex ();
6494 for ac_lib
in '' ipv6
; do
6495 if test -z "$ac_lib"; then
6496 ac_res
="none required"
6499 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6501 if ac_fn_c_try_link
"$LINENO"; then :
6502 ac_cv_search_if_nametoindex
=$ac_res
6504 rm -f core conftest.err conftest.
$ac_objext \
6506 if ${ac_cv_search_if_nametoindex+:} false
; then :
6510 if ${ac_cv_search_if_nametoindex+:} false
; then :
6513 ac_cv_search_if_nametoindex
=no
6516 LIBS
=$ac_func_search_save_LIBS
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
6519 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
6520 ac_res
=$ac_cv_search_if_nametoindex
6521 if test "$ac_res" != no
; then :
6522 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6527 # check for /dev/random (declares HAVE_DEV_RANDOM)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
6529 $as_echo_n "checking for /dev/random... " >&6; }
6530 if ${ac_cv_file__dev_random+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 test "$cross_compiling" = yes &&
6534 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
6535 if test -r "/dev/random"; then
6536 ac_cv_file__dev_random
=yes
6538 ac_cv_file__dev_random
=no
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5
6542 $as_echo "$ac_cv_file__dev_random" >&6; }
6543 if test "x$ac_cv_file__dev_random" = xyes
; then :
6545 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
6550 # see if there is a "sa_len" field in our interface information structure
6551 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
6553 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
6555 $as_echo "#define HAVE_SA_LEN /**/" >>confdefs.h
6560 # figure out pointer size
6561 # The cast to long int works around a bug in the HP C Compiler
6562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6564 # This bug is HP SR number 8606223364.
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iaddr *" >&5
6566 $as_echo_n "checking size of struct iaddr *... " >&6; }
6567 if ${ac_cv_sizeof_struct_iaddr_p+:} false
; then :
6568 $as_echo_n "(cached) " >&6
6570 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (struct iaddr *))" "ac_cv_sizeof_struct_iaddr_p" "
6571 #include \"includes/inet.h\"
6577 if test "$ac_cv_type_struct_iaddr_p" = yes; then
6578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6580 as_fn_error
77 "cannot compute sizeof (struct iaddr *)
6581 See \`config.log' for more details" "$LINENO" 5; }
6583 ac_cv_sizeof_struct_iaddr_p
=0
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iaddr_p" >&5
6589 $as_echo "$ac_cv_sizeof_struct_iaddr_p" >&6; }
6593 cat >>confdefs.h
<<_ACEOF
6594 #define SIZEOF_STRUCT_IADDR_P $ac_cv_sizeof_struct_iaddr_p
6599 # Solaris does not have the msg_control or msg_controlen members
6600 # in the msghdr structure unless you define:
6602 # _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__
6604 # See the "standards" man page for details.
6606 # We check for the msg_control member, and if it is not found, we check
6607 # again with the appropriate defines added to the CFLAGS. (In order to
6608 # do this we have to remove the check from the cache, which is what the
6610 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6611 #include <sys/types.h>
6612 #include <sys/socket.h>
6615 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6618 CFLAGS
="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6619 CFLAGS
="$CFLAGS -D__EXTENSIONS__"
6620 unset ac_cv_member_struct_msghdr_msg_control
6621 ac_fn_c_check_member
"$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
6622 #include <sys/types.h>
6623 #include <sys/socket.h>
6626 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
; then :
6629 as_fn_error $?
"Missing msg_control member in
6630 msg_control structure." "$LINENO" 5
6637 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>
6639 if test "x$ac_cv_member_struct_tpacket_auxdata_tp_vlan_tci" = xyes
; then :
6641 $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
6649 # Check whether --with-libbind was given.
6650 if test "${with_libbind+set}" = set; then :
6651 withval
=$with_libbind; use_libbind
="$withval"
6656 case "$use_libbind" in
6658 libbind
="\${top_srcdir}/bind"
6661 libbind
="\${top_srcdir}/bind"
6664 libbind
="$use_libbind"
6665 if test ! -d "bind"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: empty bind directory" >&5
6667 $as_echo "$as_me: WARNING: empty bind directory" >&2;}
6674 # Check whether --with-ldap was given.
6675 if test "${with_ldap+set}" = set; then :
6676 withval
=$with_ldap; ldap
=$withval
6682 # OpenLDAP with SSL support.
6684 # Check whether --with-ldapcrypto was given.
6685 if test "${with_ldapcrypto+set}" = set; then :
6686 withval
=$with_ldapcrypto; ldapcrypto
=$withval
6692 # Gssapi to allow LDAP to authenticate with a keytab
6694 # Check whether --with-ldap-gssapi was given.
6695 if test "${with_ldap_gssapi+set}" = set; then :
6696 withval
=$with_ldap_gssapi; ldap_gssapi
=$withval
6703 # LDAP CASA auth support.
6705 # Check whether --with-ldapcasa was given.
6706 if test "${with_ldapcasa+set}" = set; then :
6707 withval
=$with_ldapcasa; ldapcasa
=$withval
6713 # OpenLDAP support is disabled by default, if enabled then SSL support is an
6714 # extra optional that is also disabled by default. Enabling LDAP SSL support
6715 # implies enabling LDAP support. Similarly, KRB5 support implies LDAP support,
6716 # but doesn't include SSL. The two are not dependant.
6717 if test x
$ldap = xyes ||
test x
$ldapcrypto = xyes ||
test x
$ldap_gssapi = xyes
; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_initialize" >&5
6721 $as_echo_n "checking for library containing ldap_initialize... " >&6; }
6722 if ${ac_cv_search_ldap_initialize+:} false
; then :
6723 $as_echo_n "(cached) " >&6
6725 ac_func_search_save_LIBS
=$LIBS
6726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6729 /* Override any GCC internal prototype to avoid an error.
6730 Use char because int might match the return type of a GCC
6731 builtin and then its argument prototype would still apply. */
6735 char ldap_initialize ();
6739 return ldap_initialize ();
6744 for ac_lib
in '' ldap
; do
6745 if test -z "$ac_lib"; then
6746 ac_res
="none required"
6749 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6751 if ac_fn_c_try_link
"$LINENO"; then :
6752 ac_cv_search_ldap_initialize
=$ac_res
6754 rm -f core conftest.err conftest.
$ac_objext \
6756 if ${ac_cv_search_ldap_initialize+:} false
; then :
6760 if ${ac_cv_search_ldap_initialize+:} false
; then :
6763 ac_cv_search_ldap_initialize
=no
6766 LIBS
=$ac_func_search_save_LIBS
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_initialize" >&5
6769 $as_echo "$ac_cv_search_ldap_initialize" >&6; }
6770 ac_res
=$ac_cv_search_ldap_initialize
6771 if test "$ac_res" != no
; then :
6772 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6777 as_fn_error $?
"*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?
6778 See \`config.log' for more details" "$LINENO" 5; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_pvt_opt_on" >&5
6782 $as_echo_n "checking for library containing ber_pvt_opt_on... " >&6; }
6783 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
6784 $as_echo_n "(cached) " >&6
6786 ac_func_search_save_LIBS
=$LIBS
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6790 /* Override any GCC internal prototype to avoid an error.
6791 Use char because int might match the return type of a GCC
6792 builtin and then its argument prototype would still apply. */
6796 char ber_pvt_opt_on ();
6800 return ber_pvt_opt_on ();
6805 for ac_lib
in '' lber
; do
6806 if test -z "$ac_lib"; then
6807 ac_res
="none required"
6810 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6812 if ac_fn_c_try_link
"$LINENO"; then :
6813 ac_cv_search_ber_pvt_opt_on
=$ac_res
6815 rm -f core conftest.err conftest.
$ac_objext \
6817 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
6821 if ${ac_cv_search_ber_pvt_opt_on+:} false
; then :
6824 ac_cv_search_ber_pvt_opt_on
=no
6827 LIBS
=$ac_func_search_save_LIBS
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_pvt_opt_on" >&5
6830 $as_echo "$ac_cv_search_ber_pvt_opt_on" >&6; }
6831 ac_res
=$ac_cv_search_ber_pvt_opt_on
6832 if test "$ac_res" != no
; then :
6833 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6838 as_fn_error $?
"*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?
6839 See \`config.log' for more details" "$LINENO" 5; }
6842 if test x
$ldap_gssapi = xyes
; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_init_context" >&5
6844 $as_echo_n "checking for library containing krb5_init_context... " >&6; }
6845 if ${ac_cv_search_krb5_init_context+:} false
; then :
6846 $as_echo_n "(cached) " >&6
6848 ac_func_search_save_LIBS
=$LIBS
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6852 /* Override any GCC internal prototype to avoid an error.
6853 Use char because int might match the return type of a GCC
6854 builtin and then its argument prototype would still apply. */
6858 char krb5_init_context ();
6862 return krb5_init_context ();
6867 for ac_lib
in '' krb5
; do
6868 if test -z "$ac_lib"; then
6869 ac_res
="none required"
6872 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6874 if ac_fn_c_try_link
"$LINENO"; then :
6875 ac_cv_search_krb5_init_context
=$ac_res
6877 rm -f core conftest.err conftest.
$ac_objext \
6879 if ${ac_cv_search_krb5_init_context+:} false
; then :
6883 if ${ac_cv_search_krb5_init_context+:} false
; then :
6886 ac_cv_search_krb5_init_context
=no
6889 LIBS
=$ac_func_search_save_LIBS
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_init_context" >&5
6892 $as_echo "$ac_cv_search_krb5_init_context" >&6; }
6893 ac_res
=$ac_cv_search_krb5_init_context
6894 if test "$ac_res" != no
; then :
6895 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6900 as_fn_error $?
"*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?
6901 See \`config.log' for more details" "$LINENO" 5; }
6906 # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS
6912 for ac_header
in ldap.h
6914 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
6915 if test "x$ac_cv_header_ldap_h" = xyes
; then :
6916 cat >>confdefs.h
<<_ACEOF
6917 #define HAVE_LDAP_H 1
6924 for ac_func
in inet_pton inet_ntop
6926 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6927 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6928 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6929 cat >>confdefs.h
<<_ACEOF
6930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6938 LDAP_CFLAGS
="-DLDAP_CONFIGURATION"
6940 if test x
$ldapcasa = xyes
; then
6941 for ac_header
in micasa_mgmd.h
6943 ac_fn_c_check_header_mongrel
"$LINENO" "micasa_mgmd.h" "ac_cv_header_micasa_mgmd_h" "$ac_includes_default"
6944 if test "x$ac_cv_header_micasa_mgmd_h" = xyes
; then :
6945 cat >>confdefs.h
<<_ACEOF
6946 #define HAVE_MICASA_MGMD_H 1
6949 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_CASA_AUTH"
6952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6954 as_fn_error $?
"*** Cannot find micasa_mgmd.h for ldap casa auth support
6955 See \`config.log' for more details" "$LINENO" 5; }
6962 if test x
$ldapcrypto = xyes
; then
6963 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_SSL"
6966 if test x
$ldap_gssapi = xyes
; then
6967 LDAP_CFLAGS
="$LDAP_CFLAGS -DLDAP_USE_GSSAPI"
6970 LDAP_CFLAGS
=$LDAP_CFLAGS
6974 # Append selected warning levels to CFLAGS before substitution (but after
6975 # AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc).
6976 CFLAGS
="$CFLAGS $STD_CWARNINGS"
6978 # Try to add the bind include directory
6979 CFLAGS
="$CFLAGS -I$libbind/include"
6983 CFLAGS
="$CFLAGS -D__APPLE_USE_RFC_3542" ;;
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
6988 $as_echo_n "checking for flexible array members... " >&6; }
6989 if ${ac_cv_c_flexmember+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6997 struct s { int n; double d[]; };
7002 struct s *p = malloc (offsetof (struct s, d)
7003 + m * sizeof (double));
7005 return p->d != (double *) NULL;
7010 if ac_fn_c_try_compile
"$LINENO"; then :
7011 ac_cv_c_flexmember
=yes
7013 ac_cv_c_flexmember
=no
7015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
7018 $as_echo "$ac_cv_c_flexmember" >&6; }
7019 if test $ac_cv_c_flexmember = yes; then
7021 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
7024 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
7029 ac_config_files
="$ac_config_files Makefile bind/Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile"
7031 cat >confcache
<<\_ACEOF
7032 # This file is a shell script that caches the results of configure
7033 # tests run on this system so they can be shared between configure
7034 # scripts and configure runs, see configure's option --config-cache.
7035 # It is not useful on other systems. If it contains results you don't
7036 # want to keep, you may remove or edit it.
7038 # config.status only pays attention to the cache file if you give it
7039 # the --recheck option to rerun configure.
7041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7047 # The following way of writing the cache mishandles newlines in values,
7048 # but we know of no workaround that is simple, portable, and efficient.
7049 # So, we kill variables containing newlines.
7050 # Ultrix sh set writes to stderr and can't be redirected directly,
7051 # and sets the high bit in the cache file unless we assign to the vars.
7053 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7054 eval ac_val
=\$
$ac_var
7058 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7062 _ | IFS | as_nl
) ;; #(
7063 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7064 *) { eval $ac_var=; unset $ac_var;} ;;
7070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7071 *${as_nl}ac_space
=\
*)
7072 # `set' does not quote correctly, so add quotes: double-quote
7073 # substitution turns \\\\ into \\, and sed turns \\ into \.
7076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7079 # `set' quotes correctly as required by POSIX, so do not add quotes.
7080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7093 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7094 if test -w "$cache_file"; then
7095 if test "x$cache_file" != "x/dev/null"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7097 $as_echo "$as_me: updating cache $cache_file" >&6;}
7098 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7099 cat confcache
>"$cache_file"
7101 case $cache_file in #(
7103 mv -f confcache
"$cache_file"$$
&&
7104 mv -f "$cache_file"$$
"$cache_file" ;; #(
7106 mv -f confcache
"$cache_file" ;;
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7117 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7118 # Let make expand exec_prefix.
7119 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7121 DEFS
=-DHAVE_CONFIG_H
7126 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7127 # 1. Remove the extension, and $U if already installed.
7128 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7129 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7131 # will be set to the directory where LIBOBJS objects are built.
7132 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7133 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7137 LTLIBOBJS
=$ac_ltlibobjs
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7141 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7142 if test -n "$am_sleep_pid"; then
7143 # Hide warnings about reused PIDs.
7144 wait $am_sleep_pid 2>/dev
/null
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7147 $as_echo "done" >&6; }
7148 if test -n "$EXEEXT"; then
7150 am__EXEEXT_FALSE
='#'
7156 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7157 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
7158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7161 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7165 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7169 if test -z "${BIND_ATF_TRUE}" && test -z "${BIND_ATF_FALSE}"; then
7170 as_fn_error $?
"conditional \"BIND_ATF\" was never defined.
7171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7173 if test -z "${HAVE_ATF_TRUE}" && test -z "${HAVE_ATF_FALSE}"; then
7174 as_fn_error $?
"conditional \"HAVE_ATF\" was never defined.
7175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7178 : "${CONFIG_STATUS=./config.status}"
7180 ac_clean_files_save
=$ac_clean_files
7181 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7183 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7185 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7187 # Generated by $as_me.
7188 # Run this file to recreate the current configuration.
7189 # Compiler output produced by configure, useful for debugging
7190 # configure, is in config.log if it exists.
7196 SHELL=\${CONFIG_SHELL-$SHELL}
7199 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7200 ## -------------------- ##
7201 ## M4sh Initialization. ##
7202 ## -------------------- ##
7204 # Be more Bourne compatible
7205 DUALCASE
=1; export DUALCASE
# for MKS sh
7206 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7209 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7210 # is contrary to our usage. Disable this feature.
7211 alias -g '${1+"$@"}'='"$@"'
7212 setopt NO_GLOB_SUBST
7214 case `(set -o) 2>/dev/null` in #(
7226 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7227 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7230 # Prefer a ksh shell builtin over an external printf program on Solaris,
7231 # but without wasting forks for bash or zsh.
7232 if test -z "$BASH_VERSION$ZSH_VERSION" \
7233 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7234 as_echo='print
-r --'
7235 as_echo_n='print
-rn --'
7236 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7237 as_echo='printf %s
\n'
7238 as_echo_n='printf %s
'
7240 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7241 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7242 as_echo_n='/usr
/ucb
/echo -n'
7244 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7245 as_echo_n_body='eval
7249 expr "X$arg" : "X\\(.*\\)$as_nl";
7250 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7252 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7254 export as_echo_n_body
7255 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7258 as_echo='sh
-c $as_echo_body as_echo
'
7261 # The user is always right.
7262 if test "${PATH_SEPARATOR+set}" != set; then
7264 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7265 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7272 # We need space, tab and new line, in precisely that order. Quoting is
7273 # there to prevent editors from complaining about space-tab.
7274 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7275 # splitting by setting IFS to empty value.)
7278 # Find who we are. Look in the path if we contain no directory separator.
7281 *[\\/]* ) as_myself=$0 ;;
7282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7293 # We did not find ourselves, most probably we were run as `sh COMMAND'
7294 # in which case we are not to be found in the path.
7295 if test "x$as_myself" = x
; then
7298 if test ! -f "$as_myself"; then
7299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7303 # Unset variables that we do not need and which cause bugs (e.g. in
7304 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7305 # suppresses any "Segmentation fault" message there. '((' could
7306 # trigger a bug in pdksh 5.2.14.
7307 for as_var
in BASH_ENV ENV MAIL MAILPATH
7308 do eval test x\
${$as_var+set} = xset \
7309 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7322 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7325 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7326 # ----------------------------------------
7327 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7328 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7329 # script with STATUS, using 1 if that was 0.
7332 as_status
=$1; test $as_status -eq 0 && as_status
=1
7334 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7337 $as_echo "$as_me: error: $2" >&2
7338 as_fn_exit
$as_status
7342 # as_fn_set_status STATUS
7343 # -----------------------
7344 # Set $? to STATUS, without forking.
7348 } # as_fn_set_status
7352 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7362 # Portably unset VAR.
7365 { eval $1=; unset $1;}
7367 as_unset
=as_fn_unset
7368 # as_fn_append VAR VALUE
7369 # ----------------------
7370 # Append the text in VALUE to the end of the definition contained in VAR. Take
7371 # advantage of any shell optimizations that allow amortized linear growth over
7372 # repeated appends, instead of the typical quadratic growth present in naive
7374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7375 eval 'as_fn_append ()
7386 # as_fn_arith ARG...
7387 # ------------------
7388 # Perform arithmetic evaluation on the ARGs, and store the result in the
7389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7390 # must be portable across $(()) and expr.
7391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7392 eval 'as_fn_arith ()
7399 as_val
=`expr "$@" || test $? -eq 1`
7404 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7405 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7411 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7412 as_basename
=basename
7417 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7423 as_me
=`$as_basename -- "$0" ||
7424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7425 X"$0" : 'X\(//\)$' \| \
7426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7428 sed '/^.*\/\([^/][^/]*\)\/*$/{
7442 # Avoid depending upon Character Ranges.
7443 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7444 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7445 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7446 as_cr_digits
='0123456789'
7447 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7449 ECHO_C
= ECHO_N
= ECHO_T
=
7450 case `echo -n x` in #(((((
7452 case `echo 'xy\c'` in
7453 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7455 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7462 rm -f conf$$ conf$$.exe conf$$.
file
7463 if test -d conf$$.dir
; then
7464 rm -f conf$$.dir
/conf$$.
file
7467 mkdir conf$$.dir
2>/dev
/null
7469 if (echo >conf$$.
file) 2>/dev
/null
; then
7470 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7472 # ... but there are two gotchas:
7473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7475 # In both cases, we have to default to `cp -pR'.
7476 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7478 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7486 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7487 rmdir conf$$.dir
2>/dev
/null
7492 # Create "$as_dir" as a directory, including parents if necessary.
7497 -*) as_dir
=.
/$as_dir;;
7499 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7503 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7504 *) as_qdir
=$as_dir;;
7506 as_dirs
="'$as_qdir' $as_dirs"
7507 as_dir
=`$as_dirname -- "$as_dir" ||
7508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7509 X"$as_dir" : 'X\(//\)[^/]' \| \
7510 X"$as_dir" : 'X\(//\)$' \| \
7511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7512 $as_echo X"$as_dir" |
7513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7530 test -d "$as_dir" && break
7532 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7533 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7537 if mkdir
-p .
2>/dev
/null
; then
7538 as_mkdir_p
='mkdir -p "$as_dir"'
7540 test -d .
/-p && rmdir .
/-p
7545 # as_fn_executable_p FILE
7546 # -----------------------
7547 # Test if FILE is an executable regular file.
7548 as_fn_executable_p
()
7550 test -f "$1" && test -x "$1"
7551 } # as_fn_executable_p
7553 as_executable_p
=as_fn_executable_p
7555 # Sed expression to map a string onto a valid CPP name.
7556 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7558 # Sed expression to map a string onto a valid variable name.
7559 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7563 ## ----------------------------------- ##
7564 ## Main body of $CONFIG_STATUS script. ##
7565 ## ----------------------------------- ##
7567 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7570 # Save the log message, to keep $0 and so on meaningful, and to
7571 # report actual input values of CONFIG_FILES etc. instead of their
7572 # values after options handling.
7574 This file was extended by DHCP $as_me 4.3.3, which was
7575 generated by GNU Autoconf 2.69. Invocation command line was
7577 CONFIG_FILES = $CONFIG_FILES
7578 CONFIG_HEADERS = $CONFIG_HEADERS
7579 CONFIG_LINKS = $CONFIG_LINKS
7580 CONFIG_COMMANDS = $CONFIG_COMMANDS
7583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7588 case $ac_config_files in *"
7589 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7592 case $ac_config_headers in *"
7593 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7598 # Files that config.status was made for.
7599 config_files="$ac_config_files"
7600 config_headers="$ac_config_headers"
7601 config_commands="$ac_config_commands"
7605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7607 \`$as_me' instantiates files and other configuration actions
7608 from templates according to the current configuration. Unless the files
7609 and actions are specified as TAGs, all are instantiated by default.
7611 Usage: $0 [OPTION]... [TAG]...
7613 -h, --help print this help, then exit
7614 -V, --version print version number and configuration settings, then exit
7615 --config print configuration, then exit
7616 -q, --quiet, --silent
7617 do not print progress messages
7618 -d, --debug don't remove temporary files
7619 --recheck update $as_me by reconfiguring in the same conditions
7620 --file=FILE[:TEMPLATE]
7621 instantiate the configuration file FILE
7622 --header=FILE[:TEMPLATE]
7623 instantiate the configuration header FILE
7625 Configuration files:
7628 Configuration headers:
7631 Configuration commands:
7634 Report bugs to <dhcp-users@isc.org>."
7637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7638 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7640 DHCP config.status 4.3.3
7641 configured by $0, generated by GNU Autoconf 2.69,
7642 with options \\"\$ac_cs_config\\"
7644 Copyright (C) 2012 Free Software Foundation, Inc.
7645 This config.status script is free software; the Free Software Foundation
7646 gives unlimited permission to copy, distribute and modify it."
7653 test -n "\$AWK" || AWK=awk
7656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7657 # The default lists apply if the user does not specify any file.
7663 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7664 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7668 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7680 # Handling of the options.
7681 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7683 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7684 $as_echo "$ac_cs_version"; exit ;;
7685 --config |
--confi |
--conf |
--con |
--co |
--c )
7686 $as_echo "$ac_cs_config"; exit ;;
7687 --debug |
--debu |
--deb |
--de |
--d |
-d )
7689 --file |
--fil |
--fi |
--f )
7692 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7693 '') as_fn_error $?
"missing file argument" ;;
7695 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7696 ac_need_defaults
=false
;;
7697 --header |
--heade |
--head |
--hea )
7700 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7702 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7703 ac_need_defaults
=false
;;
7705 # Conflict between --help and --header
7706 as_fn_error $?
"ambiguous option: \`$1'
7707 Try \`$0 --help' for more information.";;
7708 --help |
--hel |
-h )
7709 $as_echo "$ac_cs_usage"; exit ;;
7710 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7711 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7715 -*) as_fn_error $?
"unrecognized option: \`$1'
7716 Try \`$0 --help' for more information." ;;
7718 *) as_fn_append ac_config_targets
" $1"
7719 ac_need_defaults
=false
;;
7725 ac_configure_extra_args
=
7727 if $ac_cs_silent; then
7729 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7734 if \$ac_cs_recheck; then
7735 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7738 CONFIG_SHELL='$SHELL'
7744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7749 ## Running $as_me. ##
7755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7765 # Handling of arguments.
7766 for ac_config_target
in $ac_config_targets
7768 case $ac_config_target in
7769 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7770 "includes/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS includes/config.h" ;;
7771 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7772 "bind/Makefile") CONFIG_FILES
="$CONFIG_FILES bind/Makefile" ;;
7773 "client/Makefile") CONFIG_FILES
="$CONFIG_FILES client/Makefile" ;;
7774 "client/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES client/tests/Makefile" ;;
7775 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
7776 "common/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES common/tests/Makefile" ;;
7777 "dhcpctl/Makefile") CONFIG_FILES
="$CONFIG_FILES dhcpctl/Makefile" ;;
7778 "includes/Makefile") CONFIG_FILES
="$CONFIG_FILES includes/Makefile" ;;
7779 "omapip/Makefile") CONFIG_FILES
="$CONFIG_FILES omapip/Makefile" ;;
7780 "relay/Makefile") CONFIG_FILES
="$CONFIG_FILES relay/Makefile" ;;
7781 "server/Makefile") CONFIG_FILES
="$CONFIG_FILES server/Makefile" ;;
7782 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
7783 "tests/unittest.sh") CONFIG_FILES
="$CONFIG_FILES tests/unittest.sh" ;;
7784 "server/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES server/tests/Makefile" ;;
7785 "doc/devel/doxyfile") CONFIG_FILES
="$CONFIG_FILES doc/devel/doxyfile" ;;
7787 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7792 # If the user did not use the arguments to specify the items to instantiate,
7793 # then the envvar interface is used. Set only those that are not.
7794 # We use the long form for the default assignment because of an extremely
7795 # bizarre bug on SunOS 4.1.3.
7796 if $ac_need_defaults; then
7797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7802 # Have a temporary directory for convenience. Make it in the build tree
7803 # simply because there is no reason against having it here, and in addition,
7804 # creating and moving files from /tmp can sometimes cause problems.
7805 # Hook for its removal unless debugging.
7806 # Note that there is a small window in which the directory will not be cleaned:
7807 # after its creation but before its name has been assigned to `$tmp'.
7811 trap 'exit_status=$?
7813 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7815 trap 'as_fn_exit 1' 1 2 13 15
7817 # Create a (secure) tmp directory for tmp files.
7820 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7824 tmp
=.
/conf$$
-$RANDOM
7825 (umask 077 && mkdir
"$tmp")
7826 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7829 # Set up the scripts for CONFIG_FILES section.
7830 # No need to generate them if there are no CONFIG_FILES.
7831 # This happens for instance with `./config.status config.h'.
7832 if test -n "$CONFIG_FILES"; then
7835 ac_cr
=`echo X | tr X '\015'`
7836 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7837 # But we know of no other shell where ac_cr would be empty at this
7838 # point, so we can use a bashism as a fallback.
7839 if test "x$ac_cr" = x
; then
7840 eval ac_cr
=\$
\'\\r
\'
7842 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7843 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7849 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7854 echo "cat >conf$$subs.awk <<_ACEOF" &&
7855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7858 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7859 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7861 for ac_last_try in false false false false false :; do
7862 . ./conf$$subs.sh ||
7863 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7865 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7866 if test $ac_delim_n = $ac_delim_num; then
7868 elif $ac_last_try; then
7869 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7871 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7877 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7881 s/^/S["/; s
/!.
*/"]=/
7891 s/\(.\{148\}\)..*/\1/
7893 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7898 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7905 s/\(.\{148\}\)..*/\1/
7907 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7911 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7916 ' <conf$$subs.awk | sed '
7921 ' >>$CONFIG_STATUS || ac_write_fail=1
7922 rm -f conf$$subs.awk
7923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7925 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7926 for (key in S) S_is_set[key] = 1
7932 nfields = split(line, field, "@
")
7934 len = length(field[1])
7935 for (i = 2; i < nfields; i++) {
7937 keylen = length(key)
7938 if (S_is_set[key]) {
7940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7941 len += length(value) + length(field[++i])
7952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7953 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7954 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7957 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7958 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7961 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7962 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7963 # trailing colons and then remove the whole line if VPATH becomes empty
7964 # (actually we leave an empty line to preserve line numbers).
7965 if test "x
$srcdir" = x.; then
7966 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7985 fi # test -n "$CONFIG_FILES"
7987 # Set up the scripts for CONFIG_HEADERS section.
7988 # No need to generate them if there are no CONFIG_HEADERS.
7989 # This happens for instance with `./config.status Makefile'.
7990 if test -n "$CONFIG_HEADERS"; then
7991 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7995 # Transform confdefs.h into an awk script `defines.awk', embedded as
7996 # here-document in config.status, that substitutes the proper values into
7997 # config.h.in to produce config.h.
7999 # Create a delimiter string that does not exist in confdefs.h, to ease
8000 # handling of long lines.
8002 for ac_last_try in false false :; do
8003 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8004 if test -z "$ac_tt"; then
8006 elif $ac_last_try; then
8007 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8009 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8013 # For the awk script, D is an array of macro values keyed by name,
8014 # likewise P contains macro parameters if any. Preserve backslash
8015 # newline sequences.
8017 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8019 s/.\{148\}/&'"$ac_delim"'/g
8022 s/^[ ]*#[ ]*define[ ][ ]*/ /
8029 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8031 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8035 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8036 D["\
1"]=" \
3\\\\\\n
"\\/p
8038 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8043 s/.\{148\}/&'"$ac_delim"'/g
8048 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8051 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8053 ' <confdefs.h | sed '
8054 s/'"$ac_delim"'/"\\\
8055 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8058 for (key in D) D_is_set[key] = 1
8061 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8063 split(line, arg, " ")
8064 if (arg[1] == "#") {
8068 defundef
= substr
(arg
[1], 2)
8071 split(mac1
, mac2
, "(") #)
8073 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8074 if (D_is_set
[macro
]) {
8075 # Preserve the white space surrounding the "#".
8076 print prefix
"define", macro P
[macro
] D
[macro
]
8079 # Replace #undef with comments. This is necessary, for example,
8080 # in the case of _POSIX_SOURCE, which is predefined and required
8081 # on some systems where configure will not decide to define it.
8082 if (defundef
== "undef") {
8083 print
"/*", prefix defundef
, macro
, "*/"
8091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8092 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8093 fi # test -n "$CONFIG_HEADERS"
8096 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8101 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8103 case $ac_mode$ac_tag in
8105 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8106 :[FH
]-) ac_tag
=-:-;;
8107 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8124 -) ac_f
="$ac_tmp/stdin";;
8125 *) # Look for the file first in the build tree, then in the source tree
8126 # (if the path is not absolute). The absolute path cannot be DOS-style,
8127 # because $ac_f cannot contain `:'.
8131 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8133 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8135 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8136 as_fn_append ac_file_inputs
" '$ac_f'"
8139 # Let's still pretend it is `configure' which instantiates (i.e., don't
8140 # use $as_me), people would be surprised to read:
8141 # /* config.h. Generated by config.status. */
8142 configure_input
='Generated from '`
8143 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8145 if test x
"$ac_file" != x-
; then
8146 configure_input
="$ac_file. $configure_input"
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8148 $as_echo "$as_me: creating $ac_file" >&6;}
8150 # Neutralize special characters interpreted by sed in replacement strings.
8151 case $configure_input in #(
8152 *\
&* |
*\|
* |
*\\* )
8153 ac_sed_conf_input
=`$as_echo "$configure_input" |
8154 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8155 *) ac_sed_conf_input
=$configure_input;;
8159 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8160 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8165 ac_dir
=`$as_dirname -- "$ac_file" ||
8166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8167 X"$ac_file" : 'X\(//\)[^/]' \| \
8168 X"$ac_file" : 'X\(//\)$' \| \
8169 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8170 $as_echo X"$ac_file" |
8171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8188 as_dir
="$ac_dir"; as_fn_mkdir_p
8192 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8194 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8195 # A ".." for each directory in $ac_dir_suffix.
8196 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8197 case $ac_top_builddir_sub in
8198 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8199 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8202 ac_abs_top_builddir
=$ac_pwd
8203 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8204 # for backward compatibility:
8205 ac_top_builddir
=$ac_top_build_prefix
8208 .
) # We are building in place.
8210 ac_top_srcdir
=$ac_top_builddir_sub
8211 ac_abs_top_srcdir
=$ac_pwd ;;
8212 [\\/]* | ?
:[\\/]* ) # Absolute name.
8213 ac_srcdir
=$srcdir$ac_dir_suffix;
8214 ac_top_srcdir
=$srcdir
8215 ac_abs_top_srcdir
=$srcdir ;;
8217 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8218 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8219 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8221 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8231 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8232 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8236 [\\/$
]* | ?
:[\\/]* ) ;;
8237 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8242 # Neutralize VPATH when `$srcdir' = `.'.
8243 # Shell code in configure.ac might set extrasub.
8244 # FIXME: do we really want to maintain this feature?
8245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8246 ac_sed_extra="$ac_vpsub
8249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8251 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8252 s|@configure_input@|
$ac_sed_conf_input|
;t t
8253 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8254 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8255 s
&@srcdir@
&$ac_srcdir&;t t
8256 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8257 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8258 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8259 s
&@builddir@
&$ac_builddir&;t t
8260 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8261 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8262 s
&@INSTALL@
&$ac_INSTALL&;t t
8263 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8265 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8266 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8269 rm -f "$ac_tmp/stdin
"
8271 -) cat "$ac_tmp/out
" && rm -f "$ac_tmp/out
";;
8272 *) rm -f "$ac_file" && mv "$ac_tmp/out
" "$ac_file";;
8274 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8280 if test x"$ac_file" != x-; then
8282 $as_echo "/* $configure_input */" \
8283 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs"
8284 } >"$ac_tmp/config.h
" \
8285 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8286 if diff "$ac_file" "$ac_tmp/config.h
" >/dev/null 2>&1; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged
" >&5
8288 $as_echo "$as_me: $ac_file is unchanged
" >&6;}
8291 mv "$ac_tmp/config.h
" "$ac_file" \
8292 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8295 $as_echo "/* $configure_input */" \
8296 && eval '$AWK -f "$ac_tmp/defines.
awk"' "$ac_file_inputs" \
8297 || as_fn_error $? "could not create
-" "$LINENO" 5
8299 # Compute "$ac_file"'s index in $config_headers.
8302 for _am_header in $config_headers :; do
8304 $_am_arg | $_am_arg:* )
8307 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8310 echo "timestamp
for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8311 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8312 X"$_am_arg" : 'X\(//\)[^/]' \| \
8313 X"$_am_arg" : 'X\(//\)$' \| \
8314 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8315 $as_echo X"$_am_arg" |
8316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8332 s/.*/./; q'`/stamp-h$_am_stamp_count
8335 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing
$ac_file commands
" >&5
8336 $as_echo "$as_me: executing
$ac_file commands
" >&6;}
8341 case $ac_file$ac_mode in
8342 "depfiles
":C) test x"$AMDEP_TRUE" != x"" || {
8343 # Older Autoconf quotes --file arguments for eval, but not when files
8344 # are listed without --file. Let's play safe and only enable the eval
8345 # if we detect the quoting.
8346 case $CONFIG_FILES in
8347 *\'*) eval set x "$CONFIG_FILES" ;;
8348 *) set x $CONFIG_FILES ;;
8353 # Strip MF so we end up with the name of the file.
8354 mf=`echo "$mf" | sed -e 's/:.*$//'`
8355 # Check whether this is an Automake generated Makefile or not.
8356 # We used to match only the files named 'Makefile.in', but
8357 # some people rename them; so instead we look at the file content.
8358 # Grep'ing the first line is not enough: some people post-process
8359 # each Makefile.in and add a new line on top of each file to say so.
8360 # Grep'ing the whole file is not good either: AIX grep has a line
8361 # limit of 2048, but all sed's we know have understand at least 4000.
8362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8363 dirpart=`$as_dirname -- "$mf" ||
8364 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8365 X"$mf" : 'X\(//\)[^/]' \| \
8366 X"$mf" : 'X\(//\)$' \| \
8367 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8389 # Extract the definition of DEPDIR, am__include, and am__quote
8390 # from the Makefile without running 'make'.
8391 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8392 test -z "$DEPDIR" && continue
8393 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8394 test -z "$am__include" && continue
8395 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8396 # Find all dependency output files, they are included files with
8397 # $(DEPDIR) in their names. We invoke sed twice because it is the
8398 # simplest approach to changing $(DEPDIR) to its actual value in the
8400 for file in `sed -n "
8401 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
8402 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8403 # Make sure the directory exists.
8404 test -f "$dirpart/$file" && continue
8405 fdir=`$as_dirname -- "$file" ||
8406 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8407 X"$file" : 'X\(//\)[^/]' \| \
8408 X"$file" : 'X\(//\)$' \| \
8409 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8428 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8429 # echo "creating
$dirpart/$file"
8430 echo '# dummy' > "$dirpart/$file"
8442 ac_clean_files=$ac_clean_files_save
8444 test $ac_write_fail = 0 ||
8445 as_fn_error $? "write failure creating
$CONFIG_STATUS" "$LINENO" 5
8448 # configure is writing to config.log, and then calls config.status.
8449 # config.status does its own redirection, appending to config.log.
8450 # Unfortunately, on DOS this fails, as config.log is still kept open
8451 # by configure, so config.status won't be able to write to it; its
8452 # output is simply discarded. So we exec the FD to /dev/null,
8453 # effectively closing config.log, so it can be properly (re)opened and
8454 # appended to by config.status. When coming back to configure, we
8455 # need to make the FD available again.
8456 if test "$no_create" != yes; then
8458 ac_config_status_args=
8459 test "$silent" = yes &&
8460 ac_config_status_args="$ac_config_status_args --quiet"
8462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8465 # would make configure fail if this is the last instruction.
8466 $ac_cs_success || as_fn_exit 1
8468 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&5
8470 $as_echo "$as_me: WARNING
: unrecognized options
: $ac_unrecognized_opts" >&2;}
8476 cat > config.report << END
8478 ISC DHCP source configure results:
8479 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
8483 Version: $PACKAGE_VERSION
8492 debug: $enable_debug
8493 failover: $enable_failover
8494 execute: $enable_execute
8495 binary-leases: $enable_binary_leases
8496 dhcpv6: $enable_dhcpv6
8497 delayed-ack: $enable_delayed_ack
8500 ATF unittests : $atf_path
8503 # TODO: Add Perl system tests
8505 if test "$atf_path" != "no
"
8507 echo "ATF_CFLAGS
: $ATF_CFLAGS" >> config.report
8508 echo "ATF_LDFLAGS
: $ATF_LDFLAGS" >> config.report
8509 echo "ATF_BIN
: $ATF_BIN" >> config.report
8516 echo Now you can type "make" to build ISC DHCP