configure.in revision c64aeaf419a7ef156b4aabfa2a913831e773157e
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# Copyright (C) 1998-2001 Internet Software Consortium.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# Permission to use, copy, modify, and distribute this software for any
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# purpose with or without fee is hereby granted, provided that the above
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# copyright notice and this permission notice appear in all copies.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtonesyscmd([sed "s/^/# /" COPYRIGHT])dnl
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_DIVERT_POP()dnl
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_REVISION($Revision: 1.239 $)
71f5ad0517325eb32ecbee112206277c6277af87Brian WellingtonAC_PREREQ(2.13)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_CONFIG_HEADER(config.h)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_CANONICAL_HOST
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian WellingtonAC_PROG_MAKE_SET
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_PROG_RANLIB
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_PROG_INSTALL
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(STD_CINCLUDES)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(STD_CDEFINES)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(STD_CWARNINGS)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(CCOPT)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_PATH_PROG(AR, ar)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonARFLAGS="cruv"
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(ARFLAGS)
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# The POSIX ln(1) program. Non-POSIX systems may substitute
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# "copy" or something.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington AC_MSG_ERROR([
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtonar program not found. Please fix your PATH to include the directory in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtonwhich ar resides, or set AR in the environment with the full path to ar.
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_PATH_PROGS(ETAGS, etags emacs-etags)
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# GNU emacs etags, and it requires the -L flag.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtonif test "X$ETAGS" != "X"; then
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington AC_MSG_CHECKING(for Exuberant Ctags etags)
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington AC_MSG_RESULT(yes)
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington ETAGS="$ETAGS -L"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington AC_MSG_RESULT(no)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(ETAGS)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# Perl is optional; it is used only by some of the system test scripts.
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_PATH_PROGS(PERL, perl5 perl)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(PERL)
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# Special processing of paths depending on whether --prefix,
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# --sysconfdir or --localstatedir arguments were given. What's
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# desired is some compatability with the way previous versions
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# of BIND built; they defaulted to /usr/local for most parts of
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# the installation, but named.boot/named.conf was in /etc
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# So ... if none of --prefix, --sysconfdir or --localstatedir are
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# specified, set things up that way. If --prefix is given, use
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# it for sysconfdir and localstatedir the way configure normally
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# would. To change the prefix for everything but leave named.conf
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# in /etc or named.pid in /var/run, then do this the usual configure way:
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# ./configure --prefix=/somewhere --sysconfdir=/etc
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# ./configure --prefix=/somewhere --localstatedir=/var
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# To put named.conf and named.pid in /usr/local with everything else,
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# set the prefix explicitly to /usr/local even though that's the default:
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# ./configure --prefix=/usr/local
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtoncase "$prefix" in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington case "$sysconfdir" in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington '${prefix}/etc')
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington sysconfdir=/etc
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington case "$localstatedir" in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington '${prefix}/var')
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington localstatedir=/var
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# Make sure INSTALL uses an absolute path, else it will be wrong in all
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# configure based on the location of the file where it is substituted.
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# subdirectory of install-sh, This relative path will be wrong for all
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# directories more than one level down from install-sh.
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellingtoncase "$INSTALL" in
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington # Not all systems have dirname.
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington changequote({, })
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington changequote([, ])
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington test "$ac_dir" = "$ac_prog" && ac_dir=.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington INSTALL="$ac_dir/$ac_prog"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# On these hosts, we really want to use cc, not gcc, even if it is
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# found. The gcc that these systems have will not correctly handle
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington# However, if the user sets $CC to be something, let that override
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellingtonif test "X$CC" = "X" ; then
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington case "$host" in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington # Use Sun's cc if it is available, but watch
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington # out for /usr/ucb/cc; it will never be the right
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington # compiler to use.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington # If setting CC here fails, the AC_PROG_CC done
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington # below might still find gcc.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington for ac_dir in $PATH; do
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington test -z "$ac_dir" && ac_dir=.
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington case "$ac_dir" in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington if test -f "$ac_dir/cc"; then
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington IFS="$ac_save_ifs"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington mips-sgi-irix*)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_HEADER_STDC
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/sockio.h sys/select.h)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_TYPE_SIZE_T
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_HEADER_TIME
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_MSG_CHECKING(for long long)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian WellingtonAC_TRY_COMPILE([],[long long i = 0; return (0);],
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington [AC_MSG_RESULT(yes)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"],
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington [AC_MSG_RESULT(no)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"])
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian WellingtonAC_SUBST(ISC_PLATFORM_HAVELONGLONG)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington# check if we need to #include sys/select.h explicitly
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellingtoncase $ac_cv_header_unistd_h in
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_MSG_CHECKING(if unistd.h defines fd_set)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian WellingtonAC_TRY_COMPILE([
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington[fd_set read_set; return (0);],
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington [AC_MSG_RESULT(yes)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington LWRES_PLATFORM_NEEDSYSSELECTH="#undef LWRES_PLATFORM_NEEDSYSSELECTH"],
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington [AC_MSG_RESULT(no)
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington case ac_cv_header_sys_select_h in
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
7dc1fe241043e47a6721fd841e2c52d3691379ebBrian Wellington AC_MSG_ERROR([need either working unistd.h or sys/select.h])
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington case ac_cv_header_sys_select_h in
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington LWRES_PLATFORM_NEEDSYSSELECTH="#define LWRES_PLATFORM_NEEDSYSSELECTH 1"
01d202be8fb07c010388eada31635e40ae3bffe5Brian Wellington AC_MSG_ERROR([need either unistd.h or sys/select.h])
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(ISC_PLATFORM_NEEDSYSSELECTH)
01d202be8fb07c010388eada31635e40ae3bffe5Brian WellingtonAC_SUBST(LWRES_PLATFORM_NEEDSYSSELECTH)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# Find the machine's endian flavor.
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_C_BIGENDIAN
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# was --with-openssl specified?
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_MSG_CHECKING(for compatible OpenSSL library)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian WellingtonAC_ARG_WITH(openssl,
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington[ --with-openssl=PATH Specify path for system-supplied openssl
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington (rather than using bind-9 internal openssl)],
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington use_openssl="$withval", use_openssl="no")
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# If the user didn't specify where openssl is, and we didn't find or it
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# is incompatible with our code, use our internal one.
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# XXX This appears to assume that the user specified path is correct,
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington# and does no checking.
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellingtoncase "$use_openssl" in
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_PRIVATEOPENSSL='-DDST_USE_PRIVATE_OPENSSL'
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington dst_privateopenssl='openssl'
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_OPENSSL_INC='-I${srcdir}/../openssl/include'
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_OPENSSL_LIB=''
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_OPENSSL_OBJS='${OPENSSLOBJS}'
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington AC_MSG_RESULT(using private library)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington openssl_makefiles="lib/dns/sec/openssl/Makefile \
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington lib/dns/sec/openssl/include/openssl/Makefile"
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington AC_MSG_ERROR([--with-openssl must specify a path])
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_PRIVATEOPENSSL=''
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington dst_privateopenssl=''
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_OPENSSL_INC="-I$use_openssl/include"
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DNS_OPENSSL_LIBS="-L$use_openssl/lib -lcrypto"
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington DST_OPENSSL_LIB=''
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington AC_MSG_RESULT(using openssl from $use_openssl/lib and $use_openssl/include)
2fabf91e5bfc718f274e19c5fa8844fdae90ae41Brian Wellington openssl_makefiles=""
# DST_GSSAPI_INC="-I$use_gssapi/include"
# DNS_GSSAPI_LIBS="-L$use_gssapi/lib -lgssapi_krb5"
devrandom=/dev/srandom
devrandom=/dev/random
: ${LOCALBASE:=/usr/pkg}
if test ! -d $LOCALBASE/pthreads
AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
pkg="$LOCALBASE/pthreads"
CPPFLAGS="$CPPFLAGS -I$pkg/include"
STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
# in BSD/OS 4.1.
MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP'
# from lib/dns/sec/openssl.
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>],
[ --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]],
kame_path=/usr/local/v6
if test -f $kame_path/lib/libinet6.a; then
AC_MSG_RESULT($kame_path/lib/libinet6.a)
LIBS="-L$kame_path/lib -linet6 $LIBS"
AC_MSG_ERROR([$kame_path/lib/libinet6.a not found.
# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
# netinet6/in6.h is needed for.
isc_netinet6in6_hack="#include <netinet6/in6.h>"
# This is similar to the netinet6/in6.h issue.
isc_netinetin6_hack="#include <netinet/in6.h>"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
[struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);],
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
ISC_IPV6_H="ipv6.h"
ISC_ISCIPV6_O="unix/ipv6.$O"
ISC_IPV6_C="ipv6.c"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c"
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>],
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c"
#include <sys/types.h>
#include <sys/socket.h>],
[struct sockaddr sa; sa.sa_len = 0; return (0);],
#include <sys/types.h>
#include <sys/socket.h>],
[struct msghdr msg; msg.msg_flags = 0; return (0);],
#include <sys/types.h>
#include <netinet/in.h>],
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>
#include <netdb.h>],
#include <netdb.h>],
#include <netdb.h>
AC_MSG_CHECKING(for h_errno in netdb.h)
#include <netdb.h>],
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/socket.h>
ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c"
AC_CHECK_HEADERS(linux/capability.h)
AC_CHECK_HEADERS(sys/prctl.h)
# BSD/OS, and perhaps some others, don't define rlim_t.
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}],
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}],
# Shut up a -Wmissing-prototypes warning from <stdio.h>.
# Look for SGML files. NetBSD has them under /usr/pkg/share
# (if installed), FreeBSD has them under /usr/local/share.
if test -f $d/docbook/dsssl/modular/html/docbook.dsl
SGMLDIR=/usr/local/share/sgml
if test -f $d/dtd/docbook/docbookx.dtd
XMLDIR=/usr/local/share/xml
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
BIND9_OMAPI_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/omapi/include"
BIND9_LWRES_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/lwres/include"
BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
LIBISC_API=$srcdir/lib/isc/api
LIBISCCFG_API=$srcdir/lib/isccfg/api
LIBDNS_API=$srcdir/lib/dns/api
LIBLWRES_API=$srcdir/lib/lwres/api
LIBOMAPI_API=$srcdir/lib/omapi/api
chmod a+x isc-config.sh