Commit e7aefac3 authored by Francis Dupont's avatar Francis Dupont
Browse files

Merged rt39319a (use libs where they are built)

parents b13b616b e94e7f23
......@@ -26,7 +26,7 @@ EXTRA_DIST = RELNOTES LICENSE \
bind/Makefile.in bind/bind.tar.gz bind/version.tmp \
common/tests/Atffile server/tests/Atffile
SUBDIRS = @BINDSRCDIR@ includes tests common omapip client dhcpctl relay server
SUBDIRS = @BINDSUBDIR@ includes tests common omapip client dhcpctl relay server
nobase_include_HEADERS = dhcpctl/dhcpctl.h
......
......@@ -245,7 +245,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......@@ -366,7 +372,7 @@ EXTRA_DIST = RELNOTES LICENSE \
bind/Makefile.in bind/bind.tar.gz bind/version.tmp \
common/tests/Atffile server/tests/Atffile
SUBDIRS = @BINDSRCDIR@ includes tests common omapip client dhcpctl relay server
SUBDIRS = @BINDSUBDIR@ includes tests common omapip client dhcpctl relay server
nobase_include_HEADERS = dhcpctl/dhcpctl.h
#
......
......@@ -103,6 +103,10 @@ by Eric Young (eay@cryptsoft.com).
bind/bind9 and then invoke the util/bind.sh script as usual.
[ISC-Bugs #43236]
- Use the embedded bind libraries where they are built (vs where they
are installed).
[ISC-Bugs #39319]
Changes since 4.3.0 (bug fixes)
- Tidy up several small tickets.
......
......@@ -4,10 +4,8 @@
# production code. Sadly, we are not there yet.
SUBDIRS = . tests
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
-DLOCALSTATEDIR='"$(localstatedir)"'
AM_CPPFLAGS = -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"'
AM_CPPFLAGS += -DLOCALSTATEDIR='"$(localstatedir)"'
dist_sysconf_DATA = dhclient.conf.example
sbin_PROGRAMS = dhclient
......@@ -15,7 +13,10 @@ dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
scripts/netbsd scripts/nextstep scripts/openbsd \
scripts/solaris scripts/openwrt
dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
EXTRA_DIST = $(man_MANS)
......@@ -108,8 +108,8 @@ am_dhclient_OBJECTS = clparse.$(OBJEXT) dhclient.$(OBJEXT) \
dhc6.$(OBJEXT)
dhclient_OBJECTS = $(am_dhclient_OBJECTS)
dhclient_DEPENDENCIES = ../common/libdhcp.a ../omapip/libomapi.a \
$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
@BINDLIBIRSDIR@/libirs.a @BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a @BINDLIBISCDIR@/libisc.a
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
......@@ -253,7 +253,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......@@ -356,18 +362,19 @@ top_srcdir = @top_srcdir@
# directory. That eliminates any discrepancies between tested code and
# production code. Sadly, we are not there yet.
SUBDIRS = . tests
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = -DCLIENT_PATH='"PATH=$(sbindir):/sbin:/bin:/usr/sbin:/usr/bin"' \
-DLOCALSTATEDIR='"$(localstatedir)"'
-DLOCALSTATEDIR='"$(localstatedir)"'
dist_sysconf_DATA = dhclient.conf.example
dhclient_SOURCES = clparse.c dhclient.c dhc6.c \
scripts/bsdos scripts/freebsd scripts/linux scripts/macos \
scripts/netbsd scripts/nextstep scripts/openbsd \
scripts/solaris scripts/openwrt
dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
man_MANS = dhclient.8 dhclient-script.8 dhclient.conf.5 dhclient.leases.5
EXTRA_DIST = $(man_MANS)
......
SUBDIRS = .
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes
AM_CPPFLAGS += -I@BINDDIR@/include -I$(top_srcdir)
AM_CPPFLAGS += -DLOCALSTATEDIR='"."'
......@@ -17,10 +15,13 @@ info:
DHCPSRC = ../clparse.c ../dhc6.c ../dhclient.c
DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
$(top_builddir)/dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
$(BINDLIBDIR)/libisc.a
DHCPLIBS = $(top_builddir)/common/libdhcp.a \
$(top_builddir)/omapip/libomapi.a \
$(top_builddir)/dhcpctl/libdhcpctl.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
ATF_TESTS =
if HAVE_ATF
......
......@@ -225,7 +225,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......@@ -323,16 +329,18 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = .
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes \
-I@BINDDIR@/include -I$(top_srcdir) -DLOCALSTATEDIR='"."' \
-DCLIENT_PATH='"."'
EXTRA_DIST = Atffile duid0_test.txt duid1_test.txt duid2_test.txt duid3_test.txt
DHCPSRC = ../clparse.c ../dhc6.c ../dhclient.c
DHCPLIBS = $(top_builddir)/common/libdhcp.a $(top_builddir)/omapip/libomapi.a \
$(top_builddir)/dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
$(BINDLIBDIR)/libisc.a
DHCPLIBS = $(top_builddir)/common/libdhcp.a \
$(top_builddir)/omapip/libomapi.a \
$(top_builddir)/dhcpctl/libdhcpctl.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
ATF_TESTS = $(am__append_1)
@HAVE_ATF_TRUE@duid_unittests_SOURCES = $(DHCPSRC) duid_unittest.c
......
......@@ -259,7 +259,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......
SUBDIRS = .
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = $(ATF_CFLAGS) -I$(top_srcdir)/includes
EXTRA_DIST = Atffile
......@@ -14,27 +12,35 @@ ATF_TESTS += alloc_unittest dns_unittest misc_unittest ns_name_unittest
alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
alloc_unittest_LDADD = $(ATF_LDFLAGS)
alloc_unittest_LDADD += ../libdhcp.a \
../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
alloc_unittest_LDADD += ../libdhcp.a ../../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
dns_unittest_LDADD = $(ATF_LDFLAGS)
dns_unittest_LDADD += ../libdhcp.a \
../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
dns_unittest_LDADD += ../libdhcp.a ../../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
misc_unittest_LDADD = $(ATF_LDFLAGS)
misc_unittest_LDADD += ../libdhcp.a \
../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
misc_unittest_LDADD += ../libdhcp.a ../../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
ns_name_unittest_LDADD = $(ATF_LDFLAGS)
ns_name_unittest_LDADD += ../libdhcp.a \
../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
ns_name_unittest_LDADD += ../libdhcp.a ../../omapip/libomapi.a \
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
check: $(ATF_TESTS)
@if test $(top_srcdir) != ${top_builddir}; then \
......
......@@ -111,9 +111,10 @@ alloc_unittest_OBJECTS = $(am_alloc_unittest_OBJECTS)
am__DEPENDENCIES_1 =
@HAVE_ATF_TRUE@alloc_unittest_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@HAVE_ATF_TRUE@ ../libdhcp.a ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
am__dns_unittest_SOURCES_DIST = dns_unittest.c \
$(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@am_dns_unittest_OBJECTS = dns_unittest.$(OBJEXT) \
......@@ -121,9 +122,10 @@ am__dns_unittest_SOURCES_DIST = dns_unittest.c \
dns_unittest_OBJECTS = $(am_dns_unittest_OBJECTS)
@HAVE_ATF_TRUE@dns_unittest_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@HAVE_ATF_TRUE@ ../libdhcp.a ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
am__misc_unittest_SOURCES_DIST = misc_unittest.c \
$(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@am_misc_unittest_OBJECTS = misc_unittest.$(OBJEXT) \
......@@ -131,9 +133,10 @@ am__misc_unittest_SOURCES_DIST = misc_unittest.c \
misc_unittest_OBJECTS = $(am_misc_unittest_OBJECTS)
@HAVE_ATF_TRUE@misc_unittest_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@HAVE_ATF_TRUE@ ../libdhcp.a ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
am__ns_name_unittest_SOURCES_DIST = ns_name_test.c \
$(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@am_ns_name_unittest_OBJECTS = ns_name_test.$(OBJEXT) \
......@@ -141,9 +144,10 @@ am__ns_name_unittest_SOURCES_DIST = ns_name_test.c \
ns_name_unittest_OBJECTS = $(am_ns_name_unittest_OBJECTS)
@HAVE_ATF_TRUE@ns_name_unittest_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@HAVE_ATF_TRUE@ ../libdhcp.a ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
......@@ -263,7 +267,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......@@ -361,34 +371,37 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = .
BINDLIBDIR = @BINDDIR@/lib
AM_CPPFLAGS = $(ATF_CFLAGS) -I$(top_srcdir)/includes
EXTRA_DIST = Atffile
ATF_TESTS = $(am__append_1)
@HAVE_ATF_TRUE@alloc_unittest_SOURCES = test_alloc.c $(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@alloc_unittest_LDADD = $(ATF_LDFLAGS) ../libdhcp.a \
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
@HAVE_ATF_TRUE@dns_unittest_SOURCES = dns_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@dns_unittest_LDADD = $(ATF_LDFLAGS) ../libdhcp.a \
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
@HAVE_ATF_TRUE@misc_unittest_SOURCES = misc_unittest.c $(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@misc_unittest_LDADD = $(ATF_LDFLAGS) ../libdhcp.a \
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
@HAVE_ATF_TRUE@ns_name_unittest_SOURCES = ns_name_test.c $(top_srcdir)/tests/t_api_dhcp.c
@HAVE_ATF_TRUE@ns_name_unittest_LDADD = $(ATF_LDFLAGS) ../libdhcp.a \
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libdns.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisccfg.a \
@HAVE_ATF_TRUE@ $(BINDLIBDIR)/libisc.a
@HAVE_ATF_TRUE@ ../../omapip/libomapi.a \
@HAVE_ATF_TRUE@ @BINDLIBIRSDIR@/libirs.a \
@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \
@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \
@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a
all: all-recursive
.SUFFIXES:
......
......@@ -627,10 +627,13 @@ LTLIBOBJS
LIBOBJS
LDAP_CFLAGS
LDAP_LIBS
BINDBUILD
BINDBIND
BINDLIBISCDIR
BINDLIBISCCFGDIR
BINDLIBDNSDIR
BINDLIBIRSDIR
BINDSRCDIR
BINDDIR
BINDSUBDIR
BINDIOMUX
ac_prefix_program
DISTCHECK_ATF_CONFIGURE_FLAG
......@@ -6906,11 +6909,14 @@ $as_echo "#define VLAN_TCI_PRESENT 1" >>confdefs.h
fi
# bind/Makefile.in is not from automake so we need 2 sets of variables
# bind/Makefile.in is not from automake so we need 2 variables for bind dir
BINDSUBDIR=
BINDDIR=
BINDSRCDIR=
BINDBIND=
BINDBUILD=
BINDLIBIRSDIR=
BINDLIBDNSDIR=
BINDLIBISCCFGDIR=
BINDLIBISCDIR=
# Check whether --with-libbind was given.
if test "${with_libbind+set}" = set; then :
......@@ -6924,25 +6930,29 @@ yes)
as_fn_error $? "PATH is required in --with-libbind=PATH" "$LINENO" 5
;;
no)
BINDDIR="\${top_srcdir}/bind"
BINDSRCDIR="\${top_srcdir}/bind"
BINDSUBDIR="\${top_srcdir}/bind"
my_abs_srcdir=`cd $srcdir && pwd`
BINDBIND="${my_abs_srcdir}/bind"
BINDDIR="${my_abs_srcdir}/bind"
if test ! -d "$srcdir/bind"; then
as_fn_error $? "Where to find or build bind includes and libraries must be specified" "$LINENO" 5
fi
if test -d "$srcdir/bind/bind9"; then
BINDBUILD="${my_abs_srcdir}/bind/bind9"
BINDSRCDIR="${my_abs_srcdir}/bind/bind9"
else
if test ! -f "$srcdir/bind/version.tmp"; then
as_fn_error $? "Cannot find $srcdir/bind/version.tmp" "$LINENO" 5
fi
. "$srcdir/bind/version.tmp"
bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
BINDBUILD="${my_abs_srcdir}/bind/bind-$bindversion"
BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion"
fi
ac_config_files="$ac_config_files $srcdir/bind/Makefile"
BINDLIBIRSDIR="$BINDSRCDIR/lib/export/irs"
BINDLIBDNSDIR="$BINDSRCDIR/lib/export/dns"
BINDLIBISCCFGDIR="$BINDSRCDIR/lib/export/isccfg"
BINDLIBISCDIR="$BINDSRCDIR/lib/export/isc"
;;
*)
if test ! -d "$use_libbind"; then
......@@ -6955,6 +6965,10 @@ no)
as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
fi
BINDDIR="$use_libbind"
BINDLIBIRSDIR="$BINDDIR/lib"
BINDLIBDNSDIR="$BINDDIR/lib"
BINDLIBISCCFGDIR="$BINDDIR/lib"
BINDLIBISCDIR="$BINDDIR/lib"
;;
esac
......@@ -6962,6 +6976,9 @@ esac
# OpenLDAP support.
# Check whether --with-ldap was given.
......
......@@ -731,11 +731,14 @@ AC_CHECK_MEMBER(struct tpacket_auxdata.tp_vlan_tci,
[AC_DEFINE([VLAN_TCI_PRESENT], [1], [tpacket_auxdata.tp_vlan_tci present])]
,, [#include <linux/if_packet.h>])
# bind/Makefile.in is not from automake so we need 2 sets of variables
# bind/Makefile.in is not from automake so we need 2 variables for bind dir
BINDSUBDIR=
BINDDIR=
BINDSRCDIR=
BINDBIND=
BINDBUILD=
BINDLIBIRSDIR=
BINDLIBDNSDIR=
BINDLIBISCCFGDIR=
BINDLIBISCDIR=
AC_ARG_WITH(libbind,
AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH]),
use_libbind="$withval", use_libbind="no")
......@@ -744,24 +747,28 @@ yes)
AC_MSG_ERROR([PATH is required in --with-libbind=PATH])
;;
no)
BINDDIR="\${top_srcdir}/bind"
BINDSRCDIR="\${top_srcdir}/bind"
BINDSUBDIR="\${top_srcdir}/bind"
my_abs_srcdir=`cd $srcdir && pwd`
BINDBIND="${my_abs_srcdir}/bind"
BINDDIR="${my_abs_srcdir}/bind"
if test ! -d "$srcdir/bind"; then
AC_MSG_ERROR([Where to find or build bind includes and libraries must be specified])
fi
if test -d "$srcdir/bind/bind9"; then
BINDBUILD="${my_abs_srcdir}/bind/bind9"
BINDSRCDIR="${my_abs_srcdir}/bind/bind9"
else
if test ! -f "$srcdir/bind/version.tmp"; then
AC_MSG_ERROR([Cannot find $srcdir/bind/version.tmp])
fi
. "$srcdir/bind/version.tmp"
bindversion=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
BINDBUILD="${my_abs_srcdir}/bind/bind-$bindversion"
BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion"
fi
AC_CONFIG_FILES([$srcdir/bind/Makefile])
BINDLIBIRSDIR="$BINDSRCDIR/lib/export/irs"
BINDLIBDNSDIR="$BINDSRCDIR/lib/export/dns"
BINDLIBISCCFGDIR="$BINDSRCDIR/lib/export/isccfg"
BINDLIBISCDIR="$BINDSRCDIR/lib/export/isc"
;;
*)
if test ! -d "$use_libbind"; then
......@@ -774,12 +781,19 @@ no)
AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
fi
BINDDIR="$use_libbind"
BINDLIBIRSDIR="$BINDDIR/lib"
BINDLIBDNSDIR="$BINDDIR/lib"
BINDLIBISCCFGDIR="$BINDDIR/lib"
BINDLIBISCDIR="$BINDDIR/lib"
;;
esac
AC_SUBST(BINDSUBDIR)
AC_SUBST(BINDDIR)
AC_SUBST(BINDSRCDIR)
AC_SUBST(BINDBIND)
AC_SUBST(BINDBUILD)
AC_SUBST(BINDLIBIRSDIR)
AC_SUBST(BINDLIBDNSDIR)
AC_SUBST(BINDLIBISCCFGDIR)
AC_SUBST(BINDLIBISCDIR)
# OpenLDAP support.
AC_ARG_WITH(ldap,
......
BINDLIBDIR = @BINDDIR@/lib
bin_PROGRAMS = omshell
lib_LIBRARIES = libdhcpctl.a
noinst_PROGRAMS = cltest
......@@ -8,12 +6,16 @@ EXTRA_DIST = $(man_MANS)
omshell_SOURCES = omshell.c
omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
cltest_SOURCES = cltest.c
cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
......@@ -145,15 +145,15 @@ PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
am_cltest_OBJECTS = cltest.$(OBJEXT)
cltest_OBJECTS = $(am_cltest_OBJECTS)
cltest_DEPENDENCIES = libdhcpctl.a ../common/libdhcp.a \
../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
$(BINDLIBDIR)/libisc.a
../omapip/libomapi.a @BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a @BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
am_omshell_OBJECTS = omshell.$(OBJEXT)
omshell_OBJECTS = $(am_omshell_OBJECTS)
omshell_DEPENDENCIES = libdhcpctl.a ../common/libdhcp.a \
../omapip/libomapi.a $(BINDLIBDIR)/libirs.a \
$(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \
$(BINDLIBDIR)/libisc.a
../omapip/libomapi.a @BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a @BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
......@@ -228,7 +228,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@
BINDLIBIRSDIR = @BINDLIBIRSDIR@
BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@
BINDLIBISCDIR = @BINDLIBISCDIR@
BINDSRCDIR = @BINDSRCDIR@
BINDSUBDIR = @BINDSUBDIR@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
......@@ -325,20 +331,23 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
BINDLIBDIR = @BINDDIR@/lib
lib_LIBRARIES = libdhcpctl.a
man_MANS = omshell.1 dhcpctl.3
EXTRA_DIST = $(man_MANS)
omshell_SOURCES = omshell.c
omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
libdhcpctl_a_SOURCES = dhcpctl.c callback.c remote.c
cltest_SOURCES = cltest.c
cltest_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.a \
$(BINDLIBDIR)/libirs.a $(BINDLIBDIR)/libdns.a \
$(BINDLIBDIR)/libisccfg.a $(BINDLIBDIR)/libisc.a
@BINDLIBIRSDIR@/libirs.a \
@BINDLIBDNSDIR@/libdns.a \
@BINDLIBISCCFGDIR@/libisccfg.a \
@BINDLIBISCDIR@/libisc.a
all: all-am
......
......@@ -182,7 +182,13 @@ AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BINDCONFIG = @BINDCONFIG@
BINDDIR = @BINDDIR@
BINDIOMUX = @BINDIOMUX@
BINDLIBDNSDIR = @BINDLIBDNSDIR@