diff options
author | Francis Dupont <fdupont@isc.org> | 2016-10-06 14:56:49 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2016-10-06 14:56:49 +0200 |
commit | 13e5cc6cbe83ac7cd9285a54e870e4f8ab16a604 (patch) | |
tree | 8176d5eaddb7cd24e9e291db11c2cf433a25a170 | |
parent | 3a4fc3841ea817c848e5a231b9e5c8f5c9895e6d (diff) | |
download | isc-dhcp-13e5cc6cbe83ac7cd9285a54e870e4f8ab16a604.tar.gz |
Libtoolize build chain (unfinished)
-rw-r--r-- | Makefile.am | 7 | ||||
-rw-r--r-- | Makefile.in | 49 | ||||
-rw-r--r-- | client/Makefile.am | 10 | ||||
-rw-r--r-- | client/Makefile.in | 26 | ||||
-rw-r--r-- | client/tests/Makefile.am | 14 | ||||
-rw-r--r-- | client/tests/Makefile.in | 103 | ||||
-rw-r--r-- | common/Makefile.am.in (renamed from common/Makefile.am) | 12 | ||||
-rw-r--r-- | common/tests/Makefile.am | 40 | ||||
-rw-r--r-- | common/tests/Makefile.in | 129 | ||||
-rwxr-xr-x | configure | 51 | ||||
-rw-r--r-- | configure.ac | 42 | ||||
-rw-r--r-- | configure.ac+lt | 1009 | ||||
-rw-r--r-- | configure.ac-base | 1025 | ||||
-rw-r--r-- | configure.ac-lt | 1008 | ||||
-rw-r--r-- | dhcpctl/Makefile.am | 21 | ||||
-rw-r--r-- | dhcpctl/Makefile.am.in | 21 | ||||
-rw-r--r-- | includes/Makefile.in | 2 | ||||
-rw-r--r-- | omapip/Makefile.am | 17 | ||||
-rw-r--r-- | omapip/Makefile.am.in | 17 | ||||
-rwxr-xr-x | re-conf | 20 | ||||
-rw-r--r-- | relay/Makefile.am | 10 | ||||
-rw-r--r-- | relay/Makefile.in | 26 | ||||
-rw-r--r-- | server/Makefile.am | 8 | ||||
-rw-r--r-- | server/Makefile.in | 28 | ||||
-rw-r--r-- | server/tests/Makefile.am | 11 | ||||
-rw-r--r-- | server/tests/Makefile.in | 363 | ||||
-rw-r--r-- | tests/Makefile.am.in (renamed from tests/Makefile.am) | 4 | ||||
-rw-r--r-- | util/Makefile.bind.in | 2 | ||||
-rw-r--r-- | util/lt.pl | 134 |
29 files changed, 3645 insertions, 564 deletions
diff --git a/Makefile.am b/Makefile.am index caea8833..57b83b51 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,9 +4,14 @@ Makefile: # +# for libtool +# +ACLOCAL_AMFLAGS = -I m4 + +# # We have a lot of files that we want shipped with the distribution. # -EXTRA_DIST = RELNOTES LICENSE \ +EXTRA_DIST = RELNOTES LICENSE configure.ac+lt re-conf \ contrib/3.0b1-lease-convert contrib/dhclient-tz-exithook.sh \ contrib/dhcp.spec contrib/sethostname.sh contrib/solaris.init \ contrib/ms2isc/Registry.pm contrib/ms2isc/ms2isc.pl \ diff --git a/Makefile.in b/Makefile.in index 5166446c..e1448094 100644 --- a/Makefile.in +++ b/Makefile.in @@ -101,7 +101,10 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/includes/config.h -CONFIG_CLEAN_FILES = doc/devel/doxyfile +CONFIG_CLEAN_FILES = common/Makefile.am common/Makefile \ + dhcpctl/Makefile.am dhcpctl/Makefile omapip/Makefile.am \ + omapip/Makefile tests/Makefile.am tests/Makefile \ + tests/unittest.sh doc/devel/doxyfile CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) @@ -189,8 +192,17 @@ CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ - $(top_srcdir)/doc/devel/doxyfile.in README compile \ - config.guess config.sub depcomp install-sh missing + $(top_srcdir)/common/Makefile.am.in \ + $(top_srcdir)/common/Makefile.in \ + $(top_srcdir)/dhcpctl/Makefile.am.in \ + $(top_srcdir)/dhcpctl/Makefile.in \ + $(top_srcdir)/doc/devel/doxyfile.in \ + $(top_srcdir)/omapip/Makefile.am.in \ + $(top_srcdir)/omapip/Makefile.in \ + $(top_srcdir)/tests/Makefile.am.in \ + $(top_srcdir)/tests/Makefile.in \ + $(top_srcdir)/tests/unittest.sh.in README compile config.guess \ + config.sub depcomp install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) @@ -233,6 +245,7 @@ distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -251,6 +264,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -352,11 +366,16 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # +# for libtool +# +ACLOCAL_AMFLAGS = -I m4 + +# # We have a lot of files that we want shipped with the distribution. # -EXTRA_DIST = RELNOTES LICENSE contrib/3.0b1-lease-convert \ - contrib/dhclient-tz-exithook.sh contrib/dhcp.spec \ - contrib/sethostname.sh contrib/solaris.init \ +EXTRA_DIST = RELNOTES LICENSE configure.ac+lt re-conf \ + contrib/3.0b1-lease-convert contrib/dhclient-tz-exithook.sh \ + contrib/dhcp.spec contrib/sethostname.sh contrib/solaris.init \ contrib/ms2isc/Registry.pm contrib/ms2isc/ms2isc.pl \ contrib/ms2isc/readme.txt contrib/ldap/dhcpd-conf-to-ldap \ contrib/ldap/dhcp.schema contrib/ldap/README.ldap \ @@ -411,6 +430,24 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): +common/Makefile.am: $(top_builddir)/config.status $(top_srcdir)/common/Makefile.am.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +common/Makefile: $(top_builddir)/config.status $(top_srcdir)/common/Makefile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +dhcpctl/Makefile.am: $(top_builddir)/config.status $(top_srcdir)/dhcpctl/Makefile.am.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +dhcpctl/Makefile: $(top_builddir)/config.status $(top_srcdir)/dhcpctl/Makefile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +omapip/Makefile.am: $(top_builddir)/config.status $(top_srcdir)/omapip/Makefile.am.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +omapip/Makefile: $(top_builddir)/config.status $(top_srcdir)/omapip/Makefile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/Makefile.am: $(top_builddir)/config.status $(top_srcdir)/tests/Makefile.am.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/Makefile: $(top_builddir)/config.status $(top_srcdir)/tests/Makefile.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/unittest.sh: $(top_builddir)/config.status $(top_srcdir)/tests/unittest.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $@ doc/devel/doxyfile: $(top_builddir)/config.status $(top_srcdir)/doc/devel/doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-nobase_includeHEADERS: $(nobase_include_HEADERS) diff --git a/client/Makefile.am b/client/Makefile.am index 4730536f..b6a45c64 100644 --- a/client/Makefile.am +++ b/client/Makefile.am @@ -13,10 +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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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) diff --git a/client/Makefile.in b/client/Makefile.in index c2ac8448..9b1f0b26 100644 --- a/client/Makefile.in +++ b/client/Makefile.in @@ -107,9 +107,7 @@ PROGRAMS = $(sbin_PROGRAMS) am_dhclient_OBJECTS = clparse.$(OBJEXT) dhclient.$(OBJEXT) \ dhc6.$(OBJEXT) dhclient_OBJECTS = $(am_dhclient_OBJECTS) -dhclient_DEPENDENCIES = ../common/libdhcp.a ../omapip/libomapi.a \ - @BINDLIBIRSDIR@/libirs.a @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a @BINDLIBISCDIR@/libisc.a +dhclient_DEPENDENCIES = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false @@ -240,6 +238,7 @@ am__relativize = \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -258,6 +257,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -371,11 +371,11 @@ dhclient_SOURCES = clparse.c dhclient.c dhc6.c \ scripts/netbsd scripts/nextstep scripts/openbsd \ scripts/solaris scripts/openwrt -dhclient_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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) @@ -470,15 +470,17 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhclient.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` diff --git a/client/tests/Makefile.am b/client/tests/Makefile.am index 4fe26fb0..04561375 100644 --- a/client/tests/Makefile.am +++ b/client/tests/Makefile.am @@ -15,13 +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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 diff --git a/client/tests/Makefile.in b/client/tests/Makefile.in index fef932e0..ae16d179 100644 --- a/client/tests/Makefile.in +++ b/client/tests/Makefile.in @@ -103,13 +103,18 @@ CONFIG_CLEAN_VPATH_FILES = am__EXEEXT_2 = $(am__EXEEXT_1) am__duid_unittests_SOURCES_DIST = ../clparse.c ../dhc6.c ../dhclient.c \ duid_unittest.c -am__objects_1 = clparse.$(OBJEXT) dhc6.$(OBJEXT) dhclient.$(OBJEXT) +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = ../clparse.$(OBJEXT) ../dhc6.$(OBJEXT) \ + ../dhclient.$(OBJEXT) @HAVE_ATF_TRUE@am_duid_unittests_OBJECTS = $(am__objects_1) \ @HAVE_ATF_TRUE@ duid_unittest.$(OBJEXT) duid_unittests_OBJECTS = $(am_duid_unittests_OBJECTS) am__DEPENDENCIES_1 = +am__DEPENDENCIES_2 = $(top_builddir)/common/libdhcp.@A@ \ + $(top_builddir)/omapip/libomapi.@A@ \ + $(top_builddir)/dhcpctl/libdhcpctl.@A@ @HAVE_ATF_TRUE@duid_unittests_DEPENDENCIES = $(am__DEPENDENCIES_1) \ -@HAVE_ATF_TRUE@ $(DHCPLIBS) +@HAVE_ATF_TRUE@ $(am__DEPENDENCIES_2) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false @@ -126,10 +131,6 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/includes depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) @@ -212,6 +213,7 @@ am__relativize = \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -230,6 +232,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -335,13 +338,13 @@ AM_CPPFLAGS = $(ATF_CFLAGS) -DUNIT_TEST -I$(top_srcdir)/includes \ -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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 @@ -382,6 +385,15 @@ $(am__aclocal_m4_deps): clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +../$(am__dirstamp): + @$(MKDIR_P) .. + @: > ../$(am__dirstamp) +../$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) ../$(DEPDIR) + @: > ../$(DEPDIR)/$(am__dirstamp) +../clparse.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../dhc6.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../dhclient.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) duid_unittests$(EXEEXT): $(duid_unittests_OBJECTS) $(duid_unittests_DEPENDENCIES) $(EXTRA_duid_unittests_DEPENDENCIES) @rm -f duid_unittests$(EXEEXT) @@ -389,71 +401,32 @@ duid_unittests$(EXEEXT): $(duid_unittests_OBJECTS) $(duid_unittests_DEPENDENCIES mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f ../*.$(OBJEXT) distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clparse.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhc6.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhclient.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/clparse.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhc6.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhclient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/duid_unittest.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` -clparse.o: ../clparse.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT clparse.o -MD -MP -MF $(DEPDIR)/clparse.Tpo -c -o clparse.o `test -f '../clparse.c' || echo '$(srcdir)/'`../clparse.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clparse.Tpo $(DEPDIR)/clparse.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../clparse.c' object='clparse.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clparse.o `test -f '../clparse.c' || echo '$(srcdir)/'`../clparse.c - -clparse.obj: ../clparse.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT clparse.obj -MD -MP -MF $(DEPDIR)/clparse.Tpo -c -o clparse.obj `if test -f '../clparse.c'; then $(CYGPATH_W) '../clparse.c'; else $(CYGPATH_W) '$(srcdir)/../clparse.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/clparse.Tpo $(DEPDIR)/clparse.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../clparse.c' object='clparse.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o clparse.obj `if test -f '../clparse.c'; then $(CYGPATH_W) '../clparse.c'; else $(CYGPATH_W) '$(srcdir)/../clparse.c'; fi` - -dhc6.o: ../dhc6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhc6.o -MD -MP -MF $(DEPDIR)/dhc6.Tpo -c -o dhc6.o `test -f '../dhc6.c' || echo '$(srcdir)/'`../dhc6.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhc6.Tpo $(DEPDIR)/dhc6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhc6.c' object='dhc6.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhc6.o `test -f '../dhc6.c' || echo '$(srcdir)/'`../dhc6.c - -dhc6.obj: ../dhc6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhc6.obj -MD -MP -MF $(DEPDIR)/dhc6.Tpo -c -o dhc6.obj `if test -f '../dhc6.c'; then $(CYGPATH_W) '../dhc6.c'; else $(CYGPATH_W) '$(srcdir)/../dhc6.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhc6.Tpo $(DEPDIR)/dhc6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhc6.c' object='dhc6.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhc6.obj `if test -f '../dhc6.c'; then $(CYGPATH_W) '../dhc6.c'; else $(CYGPATH_W) '$(srcdir)/../dhc6.c'; fi` - -dhclient.o: ../dhclient.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhclient.o -MD -MP -MF $(DEPDIR)/dhclient.Tpo -c -o dhclient.o `test -f '../dhclient.c' || echo '$(srcdir)/'`../dhclient.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhclient.Tpo $(DEPDIR)/dhclient.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhclient.c' object='dhclient.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhclient.o `test -f '../dhclient.c' || echo '$(srcdir)/'`../dhclient.c - -dhclient.obj: ../dhclient.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhclient.obj -MD -MP -MF $(DEPDIR)/dhclient.Tpo -c -o dhclient.obj `if test -f '../dhclient.c'; then $(CYGPATH_W) '../dhclient.c'; else $(CYGPATH_W) '$(srcdir)/../dhclient.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhclient.Tpo $(DEPDIR)/dhclient.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhclient.c' object='dhclient.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhclient.obj `if test -f '../dhclient.c'; then $(CYGPATH_W) '../dhclient.c'; else $(CYGPATH_W) '$(srcdir)/../dhclient.c'; fi` - # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, @@ -640,6 +613,8 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f ../$(DEPDIR)/$(am__dirstamp) + -rm -f ../$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -650,7 +625,7 @@ clean: clean-recursive clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am distclean: distclean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ../$(DEPDIR) ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags @@ -694,7 +669,7 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ../$(DEPDIR) ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic diff --git a/common/Makefile.am b/common/Makefile.am.in index 113aee84..b168a0ba 100644 --- a/common/Makefile.am +++ b/common/Makefile.am.in @@ -1,12 +1,12 @@ AM_CPPFLAGS = -I$(top_srcdir) -DLOCALSTATEDIR='"@localstatedir@"' AM_CFLAGS = $(LDAP_CFLAGS) -noinst_LIBRARIES = libdhcp.a -libdhcp_a_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c dhcp4o6.c \ - discover.c dispatch.c dlpi.c dns.c ethernet.c execute.c \ - fddi.c icmp.c inet.c lpf.c memory.c nit.c ns_name.c \ - options.c packet.c parse.c print.c raw.c resolv.c \ - socket.c tables.c tr.c tree.c upf.c +noinst_LIBRARIES = libdhcp.@A@ +libdhcp_@A@_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c dhcp4o6.c \ + discover.c dispatch.c dlpi.c dns.c ethernet.c execute.c \ + fddi.c icmp.c inet.c lpf.c memory.c nit.c ns_name.c \ + options.c packet.c parse.c print.c raw.c resolv.c \ + socket.c tables.c tr.c tree.c upf.c man_MANS = dhcp-eval.5 dhcp-options.5 EXTRA_DIST = $(man_MANS) diff --git a/common/tests/Makefile.am b/common/tests/Makefile.am index 3a49f69a..84e21591 100644 --- a/common/tests/Makefile.am +++ b/common/tests/Makefile.am @@ -12,35 +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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/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 \ diff --git a/common/tests/Makefile.in b/common/tests/Makefile.in index 18e71be1..bf07978b 100644 --- a/common/tests/Makefile.in +++ b/common/tests/Makefile.in @@ -105,49 +105,34 @@ CONFIG_CLEAN_VPATH_FILES = am__EXEEXT_2 = $(am__EXEEXT_1) am__alloc_unittest_SOURCES_DIST = test_alloc.c \ $(top_srcdir)/tests/t_api_dhcp.c +am__dirstamp = $(am__leading_dot)dirstamp @HAVE_ATF_TRUE@am_alloc_unittest_OBJECTS = test_alloc.$(OBJEXT) \ -@HAVE_ATF_TRUE@ t_api_dhcp.$(OBJEXT) +@HAVE_ATF_TRUE@ $(top_srcdir)/tests/t_api_dhcp.$(OBJEXT) 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@ @BINDLIBIRSDIR@/libirs.a \ -@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a +@HAVE_ATF_TRUE@ ../libdhcp.@A@ ../../omapip/libomapi.@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) \ -@HAVE_ATF_TRUE@ t_api_dhcp.$(OBJEXT) +@HAVE_ATF_TRUE@ $(top_srcdir)/tests/t_api_dhcp.$(OBJEXT) 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@ @BINDLIBIRSDIR@/libirs.a \ -@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a +@HAVE_ATF_TRUE@ ../libdhcp.@A@ ../../omapip/libomapi.@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) \ -@HAVE_ATF_TRUE@ t_api_dhcp.$(OBJEXT) +@HAVE_ATF_TRUE@ $(top_srcdir)/tests/t_api_dhcp.$(OBJEXT) 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@ @BINDLIBIRSDIR@/libirs.a \ -@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a +@HAVE_ATF_TRUE@ ../libdhcp.@A@ ../../omapip/libomapi.@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) \ -@HAVE_ATF_TRUE@ t_api_dhcp.$(OBJEXT) +@HAVE_ATF_TRUE@ $(top_srcdir)/tests/t_api_dhcp.$(OBJEXT) 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@ @BINDLIBIRSDIR@/libirs.a \ -@HAVE_ATF_TRUE@ @BINDLIBDNSDIR@/libdns.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCCFGDIR@/libisccfg.a \ -@HAVE_ATF_TRUE@ @BINDLIBISCDIR@/libisc.a +@HAVE_ATF_TRUE@ ../libdhcp.@A@ ../../omapip/libomapi.@A@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false @@ -164,10 +149,6 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/includes depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) @@ -254,6 +235,7 @@ am__relativize = \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -272,6 +254,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -376,33 +359,33 @@ 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 \ -@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@alloc_unittest_LDADD = $(ATF_LDFLAGS) ../libdhcp.@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 \ -@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_LDADD = $(ATF_LDFLAGS) ../libdhcp.@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 \ -@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_LDADD = $(ATF_LDFLAGS) ../libdhcp.@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 \ -@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_LDADD = $(ATF_LDFLAGS) ../libdhcp.@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: @@ -439,6 +422,15 @@ $(am__aclocal_m4_deps): clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +$(top_srcdir)/tests/$(am__dirstamp): + @$(MKDIR_P) $(top_srcdir)/tests + @: > $(top_srcdir)/tests/$(am__dirstamp) +$(top_srcdir)/tests/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) $(top_srcdir)/tests/$(DEPDIR) + @: > $(top_srcdir)/tests/$(DEPDIR)/$(am__dirstamp) +$(top_srcdir)/tests/t_api_dhcp.$(OBJEXT): \ + $(top_srcdir)/tests/$(am__dirstamp) \ + $(top_srcdir)/tests/$(DEPDIR)/$(am__dirstamp) alloc_unittest$(EXEEXT): $(alloc_unittest_OBJECTS) $(alloc_unittest_DEPENDENCIES) $(EXTRA_alloc_unittest_DEPENDENCIES) @rm -f alloc_unittest$(EXEEXT) @@ -458,44 +450,33 @@ ns_name_unittest$(EXEEXT): $(ns_name_unittest_OBJECTS) $(ns_name_unittest_DEPEND mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f $(top_srcdir)/tests/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c +@AMDEP_TRUE@@am__include@ @am__quote@$(top_srcdir)/tests/$(DEPDIR)/t_api_dhcp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_unittest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc_unittest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ns_name_test.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/t_api_dhcp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_alloc.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` -t_api_dhcp.o: $(top_srcdir)/tests/t_api_dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT t_api_dhcp.o -MD -MP -MF $(DEPDIR)/t_api_dhcp.Tpo -c -o t_api_dhcp.o `test -f '$(top_srcdir)/tests/t_api_dhcp.c' || echo '$(srcdir)/'`$(top_srcdir)/tests/t_api_dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/t_api_dhcp.Tpo $(DEPDIR)/t_api_dhcp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/tests/t_api_dhcp.c' object='t_api_dhcp.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o t_api_dhcp.o `test -f '$(top_srcdir)/tests/t_api_dhcp.c' || echo '$(srcdir)/'`$(top_srcdir)/tests/t_api_dhcp.c - -t_api_dhcp.obj: $(top_srcdir)/tests/t_api_dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT t_api_dhcp.obj -MD -MP -MF $(DEPDIR)/t_api_dhcp.Tpo -c -o t_api_dhcp.obj `if test -f '$(top_srcdir)/tests/t_api_dhcp.c'; then $(CYGPATH_W) '$(top_srcdir)/tests/t_api_dhcp.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/tests/t_api_dhcp.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/t_api_dhcp.Tpo $(DEPDIR)/t_api_dhcp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$(top_srcdir)/tests/t_api_dhcp.c' object='t_api_dhcp.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o t_api_dhcp.obj `if test -f '$(top_srcdir)/tests/t_api_dhcp.c'; then $(CYGPATH_W) '$(top_srcdir)/tests/t_api_dhcp.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/tests/t_api_dhcp.c'; fi` - # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, @@ -682,6 +663,8 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(top_srcdir)/tests/$(DEPDIR)/$(am__dirstamp)" || rm -f $(top_srcdir)/tests/$(DEPDIR)/$(am__dirstamp) + -test -z "$(top_srcdir)/tests/$(am__dirstamp)" || rm -f $(top_srcdir)/tests/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -692,7 +675,7 @@ clean: clean-recursive clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am distclean: distclean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf $(top_srcdir)/tests/$(DEPDIR) ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags @@ -738,7 +721,7 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf $(top_srcdir)/tests/$(DEPDIR) ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -627,6 +627,8 @@ LTLIBOBJS LIBOBJS LDAP_CFLAGS LDAP_LIBS +BINDLT +A INSTALL_BIND_FALSE INSTALL_BIND_TRUE HAVE_BINDDIR_FALSE @@ -788,6 +790,7 @@ enable_devpoll with_bind_extra_config with_libbind enable_bind_install +enable_libtool with_ldap with_ldapcrypto with_ldap_gssapi @@ -1455,6 +1458,8 @@ Optional Features: --enable-epoll use Linux epoll (default is no) --enable-devpoll use /dev/poll (default is no) --enable-bind-install install bind includes and libraries (default is no). + --enable-libtool use GNU libtool for dynamic shared libraries + (default is $default_libtool). Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -2721,6 +2726,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + # we specify "foreign" to avoid having to have the GNU mandated files, # like AUTHORS, COPYING, and such am__api_version='1.15' @@ -7005,6 +7011,44 @@ else fi +# +# GNU libtool support +# +case "$build_os" in + sunos*) + # Just set the maximum command line length for sunos + # as it otherwise takes a exceptionally long time to + # work it out. Required for libtool. + + lt_cv_sys_max_cmd_len=4096 + ;; +esac + +want_libtool="no" + +BINDLT= +# Check whether --enable-libtool was given. +if test "${enable_libtool+set}" = set; then : + enableval=$enable_libtool; want_libtool="$enableval" +fi + +if test "$want_libtool" = "yes"; then +if test "$want_libtool" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5 +$as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&5 +$as_echo "$as_me: WARNING: legacy configure is used but libtool is enabled. Trying to recover..." >&2;} + cd $srcdir; exec ./re-conf $ac_configure_args + cd $srcdir; exec ./re-conf $ac_configure_args + as_fn_error $? "Recovering failed" "$LINENO" 5 + as_fn_error $? "Recovering failed" "$LINENO" 5 +fi +fi +A=a +A=a + + + # OpenLDAP support. # Check whether --with-ldap was given. @@ -7386,7 +7430,7 @@ $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h fi -ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile common/tests/Makefile dhcpctl/Makefile includes/Makefile omapip/Makefile relay/Makefile server/Makefile tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile" +ac_config_files="$ac_config_files Makefile client/Makefile client/tests/Makefile common/Makefile.am common/Makefile common/tests/Makefile dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile omapip/Makefile.am omapip/Makefile relay/Makefile server/Makefile tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile doc/devel/doxyfile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -8140,13 +8184,17 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; "client/tests/Makefile") CONFIG_FILES="$CONFIG_FILES client/tests/Makefile" ;; + "common/Makefile.am") CONFIG_FILES="$CONFIG_FILES common/Makefile.am" ;; "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; "common/tests/Makefile") CONFIG_FILES="$CONFIG_FILES common/tests/Makefile" ;; + "dhcpctl/Makefile.am") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile.am" ;; "dhcpctl/Makefile") CONFIG_FILES="$CONFIG_FILES dhcpctl/Makefile" ;; "includes/Makefile") CONFIG_FILES="$CONFIG_FILES includes/Makefile" ;; + "omapip/Makefile.am") CONFIG_FILES="$CONFIG_FILES omapip/Makefile.am" ;; "omapip/Makefile") CONFIG_FILES="$CONFIG_FILES omapip/Makefile" ;; "relay/Makefile") CONFIG_FILES="$CONFIG_FILES relay/Makefile" ;; "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; + "tests/Makefile.am") CONFIG_FILES="$CONFIG_FILES tests/Makefile.am" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "tests/unittest.sh") CONFIG_FILES="$CONFIG_FILES tests/unittest.sh" ;; "server/tests/Makefile") CONFIG_FILES="$CONFIG_FILES server/tests/Makefile" ;; @@ -8839,6 +8887,7 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + if test "$enable_dhcpv4o6" = "yes"; then DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" elif test "$enable_dhcpv6" != "no"; then diff --git a/configure.ac b/configure.ac index 7f199a84..338879b4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,9 @@ AC_INIT([DHCP],[4.4.0-dev],[dhcp-users@isc.org]) + # we specify "foreign" to avoid having to have the GNU mandated files, # like AUTHORS, COPYING, and such -AM_INIT_AUTOMAKE([foreign]) +AM_INIT_AUTOMAKE([foreign subdir-objects]) # we specify AM_MAINTAINER_MODE to avoid problems with rebuilding # the configure and makefiles. Without it users doing things that @@ -805,6 +806,40 @@ if test "$enable_bind_install" = "yes" -a "$use_libbind" != "no"; then fi AM_CONDITIONAL(INSTALL_BIND, test "$enable_bind_install" = "yes") +# +# GNU libtool support +# +case "$build_os" in + sunos*) + # Just set the maximum command line length for sunos + # as it otherwise takes a exceptionally long time to + # work it out. Required for libtool. + + lt_cv_sys_max_cmd_len=4096 + ;; +esac + +want_libtool="no" + +BINDLT= +AC_ARG_ENABLE(libtool, + AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]), + want_libtool="$enableval") +if test "$want_libtool" = "yes"; then +if test "$want_libtool" = "yes"; then + AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) + AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) + cd $srcdir; exec ./re-conf $ac_configure_args + cd $srcdir; exec ./re-conf $ac_configure_args + AC_MSG_ERROR([Recovering failed]) + AC_MSG_ERROR([Recovering failed]) +fi +fi +A=a +A=a +AC_SUBST(A) +AC_SUBST(BINDLT) + # OpenLDAP support. AC_ARG_WITH(ldap, AS_HELP_STRING([--with-ldap],[enable OpenLDAP support in dhcpd (default is no)]), @@ -900,13 +935,17 @@ AC_CONFIG_FILES([ Makefile client/Makefile client/tests/Makefile + common/Makefile.am common/Makefile common/tests/Makefile + dhcpctl/Makefile.am dhcpctl/Makefile includes/Makefile + omapip/Makefile.am omapip/Makefile relay/Makefile server/Makefile + tests/Makefile.am tests/Makefile tests/unittest.sh server/tests/Makefile @@ -914,6 +953,7 @@ AC_CONFIG_FILES([ ]) AC_OUTPUT + if test "$enable_dhcpv4o6" = "yes"; then DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" elif test "$enable_dhcpv6" != "no"; then diff --git a/configure.ac+lt b/configure.ac+lt new file mode 100644 index 00000000..c64738fb --- /dev/null +++ b/configure.ac+lt @@ -0,0 +1,1009 @@ +AC_INIT([DHCP],[4.4.0-dev],[dhcp-users@isc.org]) + +# for libtool +AC_CONFIG_MACRO_DIR([m4]) + +# we specify "foreign" to avoid having to have the GNU mandated files, +# like AUTHORS, COPYING, and such +AM_INIT_AUTOMAKE([foreign subdir-objects]) + +# we specify AM_MAINTAINER_MODE to avoid problems with rebuilding +# the configure and makefiles. Without it users doing things that +# change the timestamps on the code, like checking it into a cvs +# tree, could trigger a rebuild of the infrastructure files which +# might fail if they don't have the correct tools. +AM_MAINTAINER_MODE + +AC_CANONICAL_HOST + +# We want to turn on warnings if we are using gcc and the user did +# not specify CFLAGS. The autoconf check for the C compiler sets the +# CFLAGS if gcc is used, so we will save it before we run that check. +SAVE_CFLAGS="$CFLAGS" + +# Now find our C compiler. +AC_PROG_CC + +# Suppress warnings about --datarootdir +AC_DEFUN([AC_DATAROOTDIR_CHECKED]) + +# If we have gcc, and AC_PROG_CC changed the flags, then we know the +# user did not specify any flags. Add warnings in this case. +if test "$GCC" = "yes"; then + if test "$CFLAGS" != "$SAVE_CFLAGS"; then + STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" + fi +fi + +# We can have some flags to pass to bind configure +BINDCONFIG= +if test "$cross_compiling" = "yes"; then + BINDCONFIG="--host=$host" +fi +# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..." +# and as there can be a space inside an argument some magic is required. +# This sets $1 ... $N to my_configure_args, arg1 ... argN +eval "set my_configure_args $ac_configure_args" +# remove my_configure_args, i.e., the guard against empty $ac_configure_args +shift +# iterate on arguments and copying 'arg' when it begins by an upper case +for a +do + case $a in + [[A-Z]]*) BINDCONFIG="$BINDCONFIG '$a'" ;; + esac +done +AC_SUBST(BINDCONFIG) + +# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides +# parts of the IPv6 Advanced Socket API as a result. This is stupid +# as it breaks how the two halves (Basic and Advanced) of the IPv6 +# Socket API were designed to be used but we have to live with it. +# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. +AC_USE_SYSTEM_EXTENSIONS + +AC_PROG_RANLIB + +AC_PATH_PROG(AR, ar) +AC_SUBST(AR) + +if test "X$AR" = "X"; then + AC_MSG_ERROR([ +ar program not found. Please fix your PATH to include the directory in +which ar resides, or set AR in the environment with the full path to ar.]) +fi + +AC_CONFIG_HEADERS([includes/config.h]) + +# we sometimes need to know byte order for building packets +AC_C_BIGENDIAN(AC_SUBST(byte_order, BIG_ENDIAN), + AC_SUBST(byte_order, LITTLE_ENDIAN)) +AC_DEFINE_UNQUOTED([DHCP_BYTE_ORDER], [$byte_order], + [Define to BIG_ENDIAN for MSB (Motorola or SPARC CPUs) + or LITTLE_ENDIAN for LSB (Intel CPUs).]) + +# Optional compile-time DEBUGging. +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug],[create a debug-only version of the software (default is no).]), + [case "${enableval}" in + yes) enable_debug=yes + AC_DEFINE([DEBUG], [1], + [Define to compile debug-only DHCP software.]) + # Just override CFLAGS totally to remove optimization. + CFLAGS="-g";; + no) enable_debug=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; + esac],[enable_debug=no]) + +# XXX: there are actually quite a lot more DEBUG_ features we could enable, +# but I don't want to pollute the --help space. +# +#/* #define DEBUG_TOKENS */ +#/* #define DEBUG_PACKET */ +#/* #define DEBUG_EXPRESSIONS */ +#/* #define DEBUG_FIND_LEASE */ +#/* #define DEBUG_EXPRESSION_PARSE */ +#/* #define DEBUG_CLASS_MATCHING */ +#/* #define DEBUG_MEMORY_LEAKAGE */ +#/* #define DEBUG_MALLOC_POOL */ +#/* #define DEBUG_LEASE_STATE_TRANSITIONS */ +#/* #define DEBUG_RC_HISTORY */ +#/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ +#/* #define RC_HISTORY_MAX 10240 */ +#/* #define POINTER_DEBUG */ +#/* #define DEBUG_FAILOVER_MESSAGES */ +#/* #define DEBUG_FAILOVER_TIMING */ +#/* #define DEBUG_DUMP_ALL_LEASES */ + +# Failover optional compile-time feature. +AC_ARG_ENABLE(failover, + AS_HELP_STRING([--enable-failover],[enable support for failover (default is yes)])) +# Failover is on by default, so define if it is not explicitly disabled. +if test "$enable_failover" != "no"; then + enable_failover="yes" + AC_DEFINE([FAILOVER_PROTOCOL], [1], + [Define to include Failover Protocol support.]) +fi + +# execute() support. +AC_ARG_ENABLE(execute, + AS_HELP_STRING([--enable-execute],[enable support for execute() in config (default is yes)])) +# execute() is on by default, so define if it is not explicitly disabled. +if test "$enable_execute" != "no" ; then + enable_execute="yes" + AC_DEFINE([ENABLE_EXECUTE], [1], + [Define to include execute() config language support.]) +fi + +# Server tracing support. +AC_ARG_ENABLE(tracing, + AS_HELP_STRING([--enable-tracing],[enable support for server activity tracing (default is yes)])) +# tracing is on by default, so define if it is not explicitly disabled. +if test "$enable_tracing" != "no" ; then + AC_DEFINE([TRACING], [1], + [Define to include server activity tracing support.]) +fi + +# Delayed-ack feature support (experimental). +AC_ARG_ENABLE(delayed_ack, + AS_HELP_STRING([--enable-delayed-ack],[queues multiple DHCPACK replies (default is no)])) +if test "$enable_delayed_ack" = "yes"; then + AC_DEFINE([DELAYED_ACK], [1], + [Define to queue multiple DHCPACK replies per fsync.]) +else + enable_delayed_ack="no" +fi + +# DHCPv6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv6, + AS_HELP_STRING([--enable-dhcpv6],[enable support for DHCPv6 (default is yes)])) +# DHCPv6 is on by default, so define if it is not explicitly disabled. +if test "$enable_dhcpv6" != "no"; then + enable_dhcpv6="yes" + AC_DEFINE([DHCPv6], [1], + [Define to 1 to include DHCPv6 support.]) +fi + +# DHCPv4o6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv4o6, + AS_HELP_STRING([--enable-dhcpv4o6],[enable support for DHCPv4-over-DHCPv6 (default is no)])) +# DHCPv4o6 is off by default, so define if it is explicitly enabled. +if test "$enable_dhcpv4o6" = "yes"; then + # DHCPv4o6 requires DHCPv6 + if test "$enable_dhcpv6" = "no"; then + AC_MSG_ERROR([dhcpv4o6 requires dhcpv6]) + fi + # DHCPv4o6 is not yet compatible with delayed-ack + if test "$enable_delayed_ack" = "yes"; then + AC_MSG_ERROR([dhcpv4o6 is not compatible with delayed-ack]) + fi + AC_DEFINE([DHCP4o6], [1], + [Define to 1 to include DHCPv4 over DHCPv6 support.]) +fi + +# PARANOIA is off by default (until we can test it with all features) +AC_ARG_ENABLE(paranoia, + AS_HELP_STRING([--enable-paranoia],[enable support for chroot/setuid (default is no)])) +AC_ARG_ENABLE(early_chroot, + AS_HELP_STRING([--enable-early-chroot],[enable chrooting prior to configuration (default is no)])) +# If someone enables early chroot, but does not enable paranoia, do so for +# them. +if test "$enable_paranoia" != "yes" && \ + test "$enable_early_chroot" = "yes" ; then + enable_paranoia="yes" +fi + +if test "$enable_paranoia" = "yes" ; then + AC_DEFINE([PARANOIA], [1], + [Define to any value to include Ari's PARANOIA patch.]) +fi +if test "$enable_early_chroot" = "yes" ; then + AC_DEFINE([EARLY_CHROOT], [1], + [Define to any value to chroot() prior to loading config.]) +fi + +AC_ARG_ENABLE(ipv4_pktinfo, + AS_HELP_STRING([--enable-ipv4-pktinfo],[enable use of pktinfo on IPv4 sockets (default is no)])) + +if test "$enable_ipv4_pktinfo" = "yes"; then + AC_DEFINE([USE_V4_PKTINFO], [1], + [Define to 1 to enable IPv4 packet info support.]) +fi + +AC_ARG_ENABLE(use_sockets, + AS_HELP_STRING([--enable-use-sockets],[use the standard BSD socket API (default is no)])) + +if test "$enable_use_sockets" = "yes"; then + AC_DEFINE([USE_SOCKETS], [1], + [Define to 1 to use the standard BSD socket API.]) +fi + +# Try to hnadle incorrect byte order for secs field +# This is off by default +AC_ARG_ENABLE(secs_byteorder, + AS_HELP_STRING([--enable-secs-byteorder],[Correct bad byteorders in the secs field (default is no).])) + +if test "$enable_secs_byteorder" = "yes" ; then + AC_DEFINE([SECS_BYTEORDER], [1], + [Define to correct bad byteorders in secs field.]) +fi + +# Include the PID in the log messages. This is useful when there may +# be multiple instances of a program. +# This is off by default +AC_ARG_ENABLE(log_pid, + AS_HELP_STRING([--enable-log-pid],[Include PIDs in syslog messages (default is no).])) +if test "$enable_log_pid" = "yes" ; then + AC_DEFINE([USE_LOG_PID], [1], + [Define to include PIDs in syslog messages.]) +fi + +# Allow for binary search when inserting v4 leases into queues +AC_ARG_ENABLE(binary_leases, + AS_HELP_STRING([--enable-binary-leases],[enable support for binary insertion of leases (default is no)])) +# binary_leases is off by default. +if test "$enable_binary_leases" = "yes"; then + AC_DEFINE([BINARY_LEASES], [1], + [Define to support binary insertion of leases into queues.]) +else + enable_binary_leases="no" +fi + +# Testing section + +DISTCHECK_ATF_CONFIGURE_FLAG= +atf_path="no" +AC_ARG_WITH([atf], + AS_HELP_STRING([--with-atf=PATH],[specify location where atf was installed (or "bind")]), + [atf_path="$withval"]) +AM_CONDITIONAL(BIND_ATF, test "$atf_path" = "bind") +if test "$atf_path" = "bind" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=bind" + atf_pcp="bind" + atf_path="\${top_srcdir}/bind/atf" + ATF_CFLAGS="-I$atf_path/include -DUNIT_TEST" + ATF_LDFLAGS="-L$atf_path/lib -latf-c" + ATF_BIN=`cd $srcdir; pwd`/bind/atf/bin + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + BINDCONFIG="$BINDCONFIG --with-atf" +elif test "$atf_path" != "no" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path" + # Config path for pkg-config + atf_pcp="" + if test "$atf_path" != "yes" ; then + if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib/pkgconfig + elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib64/pkgconfig + fi + else + # Not specified, try some common paths + atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local" + for d in $atf_dirs + do + if test -f $d/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib/pkgconfig + atf_path=$d + elif test -f $d/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib64/pkgconfig + atf_path=$d + fi + done + fi + + if test "$atf_pcp" = "" ; then + AC_MSG_ERROR([Unable to find atf files in location specified]) + else + AC_CHECK_PROG([pkgcfg_found],[pkg-config],[pkg-config],[]) + if test "$pkgcfg_found" = ""; then + AC_MSG_ERROR([Could not locate ATF, pkg-config not installed]) + fi + ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST" + ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`" + if test -f $atf_pcp/atf-sh.pc ; then + ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin" + else + # older versions don't have atf-sh, try usual place + ATF_BIN=$atf_path/bin + fi + + if test ! -x $ATF_BIN/atf-run -o ! -x $ATF_BIN/atf-report ; then + AC_MSG_WARN([atf-run/atf-report not found, assuming they are in your path]) + fi + + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + fi +fi + +AM_CONDITIONAL(HAVE_ATF, test "$atf_pcp" != "") +AM_COND_IF([HAVE_ATF], [AC_DEFINE([HAVE_ATF], [1], [ATF framework specified?])]) +AC_SUBST(DISTCHECK_ATF_CONFIGURE_FLAG) + +### +### Path fun. Older versions of DHCP were installed in /usr/sbin, so we +### need to look there and potentially overwrite by default (but not if +### the user configures an alternate value). LOCALSTATEDIR is totally +### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and +### they would be insane for suggesting it. We need to look in /var/for +### 'db' and 'state/dhcp' for db files, and /var/run for pid files by +### default. +### +AC_PREFIX_PROGRAM(dhcpd) + +# XXX - isn't there SOME WAY to default autoconf to /var instead of +# /usr/local/var/no/one/has/this/please/stop/trying? +case "$localstatedir" in + '${prefix}/var') + localstatedir=/var + ;; +esac + +# Allow specification of alternate state files +AC_ARG_WITH(srv-lease-file, + AS_HELP_STRING([--with-srv-lease-file=PATH],[File for dhcpd leases + (default is LOCALSTATEDIR/db/dhcpd.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_DB], ["$withval"], + [File for dhcpd leases.])) + +AC_MSG_CHECKING([for dhcpd.leases location]) +if [[ "x$with_srv_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv_lease_file="${localstatedir}/db/dhcpd.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/state/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" + else + with_srv_lease_file="/etc/dhcpd.leases" + fi +fi +AC_MSG_RESULT($with_srv_lease_file) + +AC_ARG_WITH(srv6-lease-file, + AS_HELP_STRING([--with-srv6-lease-file=PATH],[File for dhcpd6 leases + (default is LOCALSTATEDIR/db/dhcpd6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_DB], ["$withval"], + [File for dhcpd6 leases.])) + +AC_MSG_CHECKING([for dhcpd6.leases location]) +if [[ "x$with_srv6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" + else + with_srv6_lease_file="/etc/dhcpd6.leases" + fi +fi +AC_MSG_RESULT($with_srv6_lease_file) + +AC_ARG_WITH(cli-lease-file, + AS_HELP_STRING([--with-cli-lease-file=PATH],[File for dhclient leases + (default is LOCALSTATEDIR/db/dhclient.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_DB], ["$withval"], + [File for dhclient leases.])) + +AC_MSG_CHECKING([for dhclient.leases location]) +if [[ "x$with_cli_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli_lease_file="${localstatedir}/db/dhclient.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/state/dhclient.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/lib/dhclient.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli_lease_file="${localstatedir}/etc/dhclient.leases" + else + with_cli_lease_file="/etc/dhclient.leases" + fi +fi +AC_MSG_RESULT($with_cli_lease_file) + +AC_ARG_WITH(cli6-lease-file, + AS_HELP_STRING([--with-cli6-lease-file=PATH],[File for dhclient6 leases + (default is LOCALSTATEDIR/db/dhclient6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_DB], ["$withval"], + [File for dhclient6 leases.])) + +AC_MSG_CHECKING([for dhclient6.leases location]) +if [[ "x$with_cli6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" + else + with_cli6_lease_file="/etc/dhclient6.leases" + fi +fi +AC_MSG_RESULT($with_cli6_lease_file) + +AC_ARG_WITH(srv-pid-file, + AS_HELP_STRING([--with-srv-pid-file=PATH],[File for dhcpd process information + (default is LOCALSTATEDIR/run/dhcpd.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_PID], ["$withval"], + [File for dhcpd process information.])) +AC_ARG_WITH(srv6-pid-file, + AS_HELP_STRING([--with-srv6-pid-file=PATH],[File for dhcpd6 process information + (default is LOCALSTATEDIR/run/dhcpd6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_PID], ["$withval"], + [File for dhcpd6 process information.])) +AC_ARG_WITH(cli-pid-file, + AS_HELP_STRING([--with-cli-pid-file=PATH],[File for dhclient process information + (default is LOCALSTATEDIR/run/dhclient.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_PID], ["$withval"], + [File for dhclient process information.])) +AC_ARG_WITH(cli6-pid-file, + AS_HELP_STRING([--with-cli6-pid-file=PATH],[File for dhclient6 process information + (default is LOCALSTATEDIR/run/dhclient6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_PID], ["$withval"], + [File for dhclient6 process information.])) +AC_ARG_WITH(relay-pid-file, + AS_HELP_STRING([--with-relay-pid-file=PATH],[File for dhcrelay process information + (default is LOCALSTATEDIR/run/dhcrelay.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"], + [File for dhcrelay process information.])) +AC_ARG_WITH(relay6-pid-file, + AS_HELP_STRING([--with-relay6-pid-file=PATH],[File for dhcrelay6 process information + (default is LOCALSTATEDIR/run/dhcrelay6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY6_PID], ["$withval"], + [File for dhcrelay6 process information.])) + +# Check basic types. +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T + +# Some systems need the u_intX_t types defined across. +AC_CHECK_TYPE([u_int8_t], [], [ + AC_TYPE_UINT8_T + AC_DEFINE(u_int8_t, [uint8_t], [Define a type for 8-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int16_t], [], [ + AC_TYPE_UINT16_T + AC_DEFINE(u_int16_t, [uint16_t], [Define a type for 16-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int32_t], [], [ + AC_TYPE_UINT32_T + AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int64_t], [], [ + AC_TYPE_UINT64_T + AC_DEFINE(u_int64_t, [uint64_t], [Define a type for 64-bit unsigned + integers.]) +]) + +# see if ifaddrs.h is available +AC_CHECK_HEADERS(ifaddrs.h) + +# figure out what IPv4 interface code to use +AC_CHECK_HEADERS(linux/types.h) # needed for linux/filter.h on old systems + +AC_CHECK_HEADER(linux/filter.h, DO_LPF=1, , +[ +#ifdef HAVE_LINUX_TYPES_H +#include <linux/types.h> +#endif +]) +if test -n "$DO_LPF" +then + AC_DEFINE([HAVE_LPF], [1], + [Define to 1 to use the Linux Packet Filter interface code.]) +else + AC_CHECK_HEADER(sys/dlpi.h, DO_DLPI=1) + if test -n "$DO_DLPI" + then + AC_DEFINE([HAVE_DLPI], [1], + [Define to 1 to use DLPI interface code.]) + else + AC_CHECK_HEADER(net/bpf.h, DO_BPF=1) + if test -n "$DO_BPF" + then + AC_DEFINE([HAVE_BPF], [1], + [Define to 1 to use the + Berkeley Packet Filter interface code.]) + fi + fi +fi + +# SIOCGLIFCONF uses some transport structures. Trick is not all platforms +# use the same structures. We like to use 'struct lifconf' and 'struct +# lifreq', but we'll use these other structures if they're present. HPUX +# does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an +# int value. +# +AC_MSG_CHECKING([for struct lifnum]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <sys/socket.h> + #include <net/if.h> +]], [[ struct lifnum a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVELIFNUM], [1], + [Define to 1 if the system has 'struct lifnum'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrconf]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrconf a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRCONF], [1], + [Define to 1 if the system has 'struct if_laddrconf'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrreq]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrreq a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRREQ], [1], + [Define to 1 if the system has 'struct if_laddrreq'.])],[AC_MSG_RESULT(no)]) + +# +# check for GCC noreturn attribute +# +AC_MSG_CHECKING(for GCC noreturn attribute) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void foo() __attribute__((noreturn));]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_DHCP_NORETURN], [__attribute__((noreturn))], + [Define to the string for a noreturn attribute.])],[AC_MSG_RESULT(no) + AC_DEFINE([ISC_DHCP_NORETURN], [], + [Define to the string for a noreturn attribute.])]) + +# Look for optional headers. +AC_CHECK_HEADERS(sys/socket.h net/if_dl.h net/if6.h regex.h) + +# Solaris needs some libraries for functions +AC_SEARCH_LIBS(socket, [socket]) +AC_SEARCH_LIBS(inet_ntoa, [nsl]) + +AC_SEARCH_LIBS(inet_aton, [socket nsl], , + AC_DEFINE([NEED_INET_ATON], [1], + [Define to 1 if the inet_aton() function is missing.])) + +# Check for a standalone regex library. +AC_SEARCH_LIBS(regcomp, [regex]) + +AC_CHECK_FUNCS(strlcat) + +# For HP/UX we need -lipv6 for if_nametoindex, perhaps others. +AC_SEARCH_LIBS(if_nametoindex, [ipv6]) + +# check for /dev/random (declares HAVE_DEV_RANDOM) +AC_MSG_CHECKING(for random device) +AC_ARG_WITH(randomdev, + AS_HELP_STRING([--with-randomdev=PATH],[Path for random device + (default is /dev/random)]), + use_randomdev="$withval", use_randomdev="unspec") +if test "$use_randomdev" = "unspec"; then + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT(unspecified) + AC_MSG_ERROR([ need --with-randomdev=PATH or --with-randomdev=no]) + fi + use_randomdev="/dev/random" +elif test "$use_randomdev" = "yes"; then + use_randomdev="/dev/random" +fi +if test "$use_randomdev" = "no"; then + AC_MSG_RESULT(disabled) + BINDCONFIG="$BINDCONFIG --with-randomdev=no" +else + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT($use_randomdev (unchecked)) + else + AC_MSG_RESULT($use_randomdev) + AC_CHECK_FILE($use_randomdev, + AC_DEFINE([HAVE_DEV_RANDOM], [1], + [Define to 1 if you have the /dev/random or other configured file.]), + AC_MSG_ERROR(cannot find $use_randomdev)) + fi + BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev" +fi + +BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll" +# check kqueue/epoll/devpoll alternative to select +AC_ARG_ENABLE(kqueue, + AS_HELP_STRING([--enable-kqueue],[use BSD kqueue (default is no)]), + want_kqueue="$enableval", want_kqueue="no") +if test "$want_kqueue" = "yes"; then + BINDIOMUX="--enable-kqueue" + AC_MSG_WARN([--enable-kqueue is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(epoll, + AS_HELP_STRING([--enable-epoll],[use Linux epoll (default is no)]), + want_epoll="$enableval", want_epoll="no") +if test "$want_epoll" = "yes"; then + BINDIOMUX="--enable-epoll" + AC_MSG_WARN([--enable-epoll is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(devpoll, + AS_HELP_STRING([--enable-devpoll],[use /dev/poll (default is no)]), + want_devpoll="$enableval", want_devpoll="no") +if test "$want_devpoll" = "yes"; then + BINDIOMUX="--enable-devpoll" + AC_MSG_WARN([--enable-devpoll is not supported: it may lead to issues such as server looping]) +fi +AC_SUBST(BINDIOMUX) + +# general extra bind configure arguments +AC_ARG_WITH(bind-extra-config, + AS_HELP_STRING([--with-bind-extra-config],[configure bind librairies + with some extra options (default is none)]), + use_xbindconfig="$withval", use_xbindconfig="") +case "$use_xbindconfig" in +yes|no|'') + ;; +*) + BINDCONFIG="$BINDCONFIG $use_xbindconfig" + AC_MSG_WARN([Most options to bind configure are not supported when used by ISC DHCP]) + ;; +esac + +# see if there is a "sa_len" field in our interface information structure +AC_CHECK_MEMBER(struct sockaddr.sa_len, + AC_DEFINE([HAVE_SA_LEN], [], + [Define to 1 if the sockaddr structure has a length field.]), + , + [#include <sys/socket.h>]) + +# figure out pointer size +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -I$srcdir" +AC_CHECK_SIZEOF(struct iaddr *, , [ +#include "includes/inet.h" +#include <stdio.h> +]) +CFLAGS="$SAVE_CFLAGS" + +# Solaris does not have the msg_control or msg_controlen members +# in the msghdr structure unless you define: +# +# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ +# +# See the "standards" man page for details. +# +# We check for the msg_control member, and if it is not found, we check +# again with the appropriate defines added to the CFLAGS. (In order to +# do this we have to remove the check from the cache, which is what the +# "unset" is for.) +AC_CHECK_MEMBER(struct msghdr.msg_control,, + [CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" + CFLAGS="$CFLAGS -D__EXTENSIONS__" + unset ac_cv_member_struct_msghdr_msg_control + AC_CHECK_MEMBER(struct msghdr.msg_control,, + [AC_MSG_ERROR([Missing msg_control member in + msg_control structure.])], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + ], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + +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 variables for bind dir +BINDSUBDIR= +BINDDIR= +BINDSRCDIR= +BINDLIBIRSDIR= +BINDLIBDNSDIR= +BINDLIBISCCFGDIR= +BINDLIBISCDIR= +DISTCHECK_LIBBIND_CONFIGURE_FLAG= +AC_ARG_WITH(libbind, + AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH]), + use_libbind="$withval", use_libbind="no") +case "$use_libbind" in +yes) + AC_MSG_ERROR([PATH is required in --with-libbind=PATH]) + ;; +no) + BINDSUBDIR="\${top_srcdir}/bind" + my_abs_srcdir=`cd $srcdir && pwd` + 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 + 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} + BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion" + fi + AC_CONFIG_FILES([$srcdir/bind/Makefile]) + + BINDLIBIRSDIR="$BINDSRCDIR/lib/irs" + BINDLIBDNSDIR="$BINDSRCDIR/lib/dns" + BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg" + BINDLIBISCDIR="$BINDSRCDIR/lib/isc" + ;; +*) + if test ! -d "$use_libbind"; then + AC_MSG_ERROR([Cannot find bind directory at $use_libbind]) + fi + if test ! -d "$use_libbind/include"; then + AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include]) + fi + if test ! -d "$use_libbind/lib"; then + 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" + DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind" + ;; +esac +AC_SUBST(BINDSUBDIR) +AC_SUBST(BINDDIR) +AC_SUBST(BINDSRCDIR) +AC_SUBST(BINDLIBIRSDIR) +AC_SUBST(BINDLIBDNSDIR) +AC_SUBST(BINDLIBISCCFGDIR) +AC_SUBST(BINDLIBISCDIR) +AC_SUBST(DISTCHECK_LIBBIND_CONFIGURE_FLAG) +AM_CONDITIONAL(HAVE_BINDDIR, test "$use_libbind" = "no") + +AC_ARG_ENABLE(bind_install, + AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is no).])) +if test "$enable_bind_install" = "yes" -a "$use_libbind" != "no"; then + AC_MSG_WARN([--enable-bind-install does nothing when --with-libbind is set]) +fi +AM_CONDITIONAL(INSTALL_BIND, test "$enable_bind_install" = "yes") + +# +# GNU libtool support +# +case "$build_os" in + sunos*) + # Just set the maximum command line length for sunos + # as it otherwise takes a exceptionally long time to + # work it out. Required for libtool. + + lt_cv_sys_max_cmd_len=4096 + ;; +esac + +want_libtool="no" +LT_INIT +want_libtool="yes" + +BINDLT= +AC_ARG_ENABLE(libtool, + AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]), + want_libtool="$enableval") +if test "$want_libtool" = "no"; then + AC_MSG_ERROR([libtool configure is used but libtool is disabled?]) +fi +A=la +BINDLT=--with-libtool +AC_SUBST(A) +AC_SUBST(BINDLT) + +# OpenLDAP support. +AC_ARG_WITH(ldap, + AS_HELP_STRING([--with-ldap],[enable OpenLDAP support in dhcpd (default is no)]), + [ldap=$withval], + [ldap=no]) + +# OpenLDAP with SSL support. +AC_ARG_WITH(ldapcrypto, + AS_HELP_STRING([--with-ldapcrypto],[enable OpenLDAP crypto support in dhcpd (default is no)]), + [ldapcrypto=$withval], + [ldapcrypto=no]) + +# Gssapi to allow LDAP to authenticate with a keytab +AC_ARG_WITH(ldap-gssapi, + AC_HELP_STRING([--with-ldap-gssapi], + [enable krb5/gssapi authentication for OpenLDAP in dhcpd (default is no)]), + [ldap_gssapi=$withval], + [ldap_gssapi=no]) + + +# LDAP CASA auth support. +AC_ARG_WITH(ldapcasa, + AC_HELP_STRING([--with-ldapcasa], + [enable LDAP CASA auth support in dhcpd (default is no)]), + [ldapcasa=$withval], + [ldapcasa=no]) + +# OpenLDAP support is disabled by default, if enabled then SSL support is an +# extra optional that is also disabled by default. Enabling LDAP SSL support +# implies enabling LDAP support. Similarly, KRB5 support implies LDAP support, +# but doesn't include SSL. The two are not dependant. +if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then + saved_LIBS="$LIBS" + LIBS="" + AC_SEARCH_LIBS(ldap_initialize, [ldap], , + AC_MSG_FAILURE([*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?])) + AC_SEARCH_LIBS(ber_pvt_opt_on, [lber], , + AC_MSG_FAILURE([*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?])) + if test x$ldap_gssapi = xyes ; then + AC_SEARCH_LIBS(krb5_init_context, [krb5], , + AC_MSG_FAILURE([*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?])) + fi + + # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS + AC_SUBST(LDAP_LIBS, [$LIBS]) + LIBS="$saved_LIBS" + + + AC_CHECK_HEADERS([ldap.h]) + AC_CHECK_FUNCS([inet_pton inet_ntop]) + + + LDAP_CFLAGS="-DLDAP_CONFIGURATION" + + if test x$ldapcasa = xyes ; then + AC_CHECK_HEADERS([micasa_mgmd.h],[ + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH" + ], AC_MSG_FAILURE([*** Cannot find micasa_mgmd.h for ldap casa auth support])) + fi + + if test x$ldapcrypto = xyes ; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL" + fi + + if test x$ldap_gssapi = xyes; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI" + fi + + AC_SUBST(LDAP_CFLAGS, [$LDAP_CFLAGS]) +fi + +# Append selected warning levels to CFLAGS before substitution (but after +# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc). +CFLAGS="$CFLAGS $STD_CWARNINGS" + +# Try to add the bind and dhcp include directories +CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" + +case "$host" in +*-darwin*) + CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";; +*-solaris*) + # As of Solaris 11, ethernet dev files are in /dev/net + AC_CHECK_FILE(/dev/net, + [AC_DEFINE([USE_DEV_NET], [1], + [Define to 1 if ethernet devices are in /dev/net])]) + ;; +esac + +AC_C_FLEXIBLE_ARRAY_MEMBER + +AC_CONFIG_FILES([ + Makefile + client/Makefile + client/tests/Makefile + common/Makefile.am + common/Makefile + common/tests/Makefile + dhcpctl/Makefile.am + dhcpctl/Makefile + includes/Makefile + omapip/Makefile.am + omapip/Makefile + relay/Makefile + server/Makefile + tests/Makefile.am + tests/Makefile + tests/unittest.sh + server/tests/Makefile + doc/devel/doxyfile +]) +AC_OUTPUT + +AC_MSG_NOTICE([postconfig: run automake in $srcdir]) +(cd $srcdir; automake) +AC_MSG_NOTICE([postconfig: rerun config.status]) +sh ./config.status + +if test "$enable_dhcpv4o6" = "yes"; then + DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" +elif test "$enable_dhcpv6" != "no"; then + DHCP_VERSIONS="DHCPv4 and DHCPv6" +else + DHCP_VERSIONS="DHCPv4" +fi + +cat > config.report << END + + ISC DHCP source configure results: + -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +Package: + Name: $PACKAGE_NAME + Version: $PACKAGE_VERSION + +C Compiler: $CC + +Flags: + DEFS: $DEFS + CFLAGS: $CFLAGS + +DHCP versions: $DHCP_VERSIONS + +Features: + debug: $enable_debug + failover: $enable_failover + execute: $enable_execute + binary-leases: $enable_binary_leases + dhcpv6: $enable_dhcpv6 + delayed-ack: $enable_delayed_ack + +Developer: + ATF unittests : $atf_path + +END +# TODO: Add Perl system tests + +if test "$atf_path" != "no" +then +echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report +echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report +echo "ATF_BIN : $ATF_BIN" >> config.report +echo +fi + +cat config.report + +echo +echo Now you can type "make" to build ISC DHCP +echo diff --git a/configure.ac-base b/configure.ac-base new file mode 100644 index 00000000..d973fd4a --- /dev/null +++ b/configure.ac-base @@ -0,0 +1,1025 @@ +AC_INIT([DHCP],[4.4.0-dev],[dhcp-users@isc.org]) + +@BEGIN WITH LIBTOOL +# for libtool +AC_CONFIG_MACRO_DIR([m4]) +@END WITH LIBTOOL + +# we specify "foreign" to avoid having to have the GNU mandated files, +# like AUTHORS, COPYING, and such +AM_INIT_AUTOMAKE([foreign subdir-objects]) + +# we specify AM_MAINTAINER_MODE to avoid problems with rebuilding +# the configure and makefiles. Without it users doing things that +# change the timestamps on the code, like checking it into a cvs +# tree, could trigger a rebuild of the infrastructure files which +# might fail if they don't have the correct tools. +AM_MAINTAINER_MODE + +AC_CANONICAL_HOST + +# We want to turn on warnings if we are using gcc and the user did +# not specify CFLAGS. The autoconf check for the C compiler sets the +# CFLAGS if gcc is used, so we will save it before we run that check. +SAVE_CFLAGS="$CFLAGS" + +# Now find our C compiler. +AC_PROG_CC + +# Suppress warnings about --datarootdir +AC_DEFUN([AC_DATAROOTDIR_CHECKED]) + +# If we have gcc, and AC_PROG_CC changed the flags, then we know the +# user did not specify any flags. Add warnings in this case. +if test "$GCC" = "yes"; then + if test "$CFLAGS" != "$SAVE_CFLAGS"; then + STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" + fi +fi + +# We can have some flags to pass to bind configure +BINDCONFIG= +if test "$cross_compiling" = "yes"; then + BINDCONFIG="--host=$host" +fi +# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..." +# and as there can be a space inside an argument some magic is required. +# This sets $1 ... $N to my_configure_args, arg1 ... argN +eval "set my_configure_args $ac_configure_args" +# remove my_configure_args, i.e., the guard against empty $ac_configure_args +shift +# iterate on arguments and copying 'arg' when it begins by an upper case +for a +do + case $a in + [[A-Z]]*) BINDCONFIG="$BINDCONFIG '$a'" ;; + esac +done +AC_SUBST(BINDCONFIG) + +# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides +# parts of the IPv6 Advanced Socket API as a result. This is stupid +# as it breaks how the two halves (Basic and Advanced) of the IPv6 +# Socket API were designed to be used but we have to live with it. +# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. +AC_USE_SYSTEM_EXTENSIONS + +AC_PROG_RANLIB + +AC_PATH_PROG(AR, ar) +AC_SUBST(AR) + +if test "X$AR" = "X"; then + AC_MSG_ERROR([ +ar program not found. Please fix your PATH to include the directory in +which ar resides, or set AR in the environment with the full path to ar.]) +fi + +AC_CONFIG_HEADERS([includes/config.h]) + +# we sometimes need to know byte order for building packets +AC_C_BIGENDIAN(AC_SUBST(byte_order, BIG_ENDIAN), + AC_SUBST(byte_order, LITTLE_ENDIAN)) +AC_DEFINE_UNQUOTED([DHCP_BYTE_ORDER], [$byte_order], + [Define to BIG_ENDIAN for MSB (Motorola or SPARC CPUs) + or LITTLE_ENDIAN for LSB (Intel CPUs).]) + +# Optional compile-time DEBUGging. +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug],[create a debug-only version of the software (default is no).]), + [case "${enableval}" in + yes) enable_debug=yes + AC_DEFINE([DEBUG], [1], + [Define to compile debug-only DHCP software.]) + # Just override CFLAGS totally to remove optimization. + CFLAGS="-g";; + no) enable_debug=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; + esac],[enable_debug=no]) + +# XXX: there are actually quite a lot more DEBUG_ features we could enable, +# but I don't want to pollute the --help space. +# +#/* #define DEBUG_TOKENS */ +#/* #define DEBUG_PACKET */ +#/* #define DEBUG_EXPRESSIONS */ +#/* #define DEBUG_FIND_LEASE */ +#/* #define DEBUG_EXPRESSION_PARSE */ +#/* #define DEBUG_CLASS_MATCHING */ +#/* #define DEBUG_MEMORY_LEAKAGE */ +#/* #define DEBUG_MALLOC_POOL */ +#/* #define DEBUG_LEASE_STATE_TRANSITIONS */ +#/* #define DEBUG_RC_HISTORY */ +#/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ +#/* #define RC_HISTORY_MAX 10240 */ +#/* #define POINTER_DEBUG */ +#/* #define DEBUG_FAILOVER_MESSAGES */ +#/* #define DEBUG_FAILOVER_TIMING */ +#/* #define DEBUG_DUMP_ALL_LEASES */ + +# Failover optional compile-time feature. +AC_ARG_ENABLE(failover, + AS_HELP_STRING([--enable-failover],[enable support for failover (default is yes)])) +# Failover is on by default, so define if it is not explicitly disabled. +if test "$enable_failover" != "no"; then + enable_failover="yes" + AC_DEFINE([FAILOVER_PROTOCOL], [1], + [Define to include Failover Protocol support.]) +fi + +# execute() support. +AC_ARG_ENABLE(execute, + AS_HELP_STRING([--enable-execute],[enable support for execute() in config (default is yes)])) +# execute() is on by default, so define if it is not explicitly disabled. +if test "$enable_execute" != "no" ; then + enable_execute="yes" + AC_DEFINE([ENABLE_EXECUTE], [1], + [Define to include execute() config language support.]) +fi + +# Server tracing support. +AC_ARG_ENABLE(tracing, + AS_HELP_STRING([--enable-tracing],[enable support for server activity tracing (default is yes)])) +# tracing is on by default, so define if it is not explicitly disabled. +if test "$enable_tracing" != "no" ; then + AC_DEFINE([TRACING], [1], + [Define to include server activity tracing support.]) +fi + +# Delayed-ack feature support (experimental). +AC_ARG_ENABLE(delayed_ack, + AS_HELP_STRING([--enable-delayed-ack],[queues multiple DHCPACK replies (default is no)])) +if test "$enable_delayed_ack" = "yes"; then + AC_DEFINE([DELAYED_ACK], [1], + [Define to queue multiple DHCPACK replies per fsync.]) +else + enable_delayed_ack="no" +fi + +# DHCPv6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv6, + AS_HELP_STRING([--enable-dhcpv6],[enable support for DHCPv6 (default is yes)])) +# DHCPv6 is on by default, so define if it is not explicitly disabled. +if test "$enable_dhcpv6" != "no"; then + enable_dhcpv6="yes" + AC_DEFINE([DHCPv6], [1], + [Define to 1 to include DHCPv6 support.]) +fi + +# DHCPv4o6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv4o6, + AS_HELP_STRING([--enable-dhcpv4o6],[enable support for DHCPv4-over-DHCPv6 (default is no)])) +# DHCPv4o6 is off by default, so define if it is explicitly enabled. +if test "$enable_dhcpv4o6" = "yes"; then + # DHCPv4o6 requires DHCPv6 + if test "$enable_dhcpv6" = "no"; then + AC_MSG_ERROR([dhcpv4o6 requires dhcpv6]) + fi + # DHCPv4o6 is not yet compatible with delayed-ack + if test "$enable_delayed_ack" = "yes"; then + AC_MSG_ERROR([dhcpv4o6 is not compatible with delayed-ack]) + fi + AC_DEFINE([DHCP4o6], [1], + [Define to 1 to include DHCPv4 over DHCPv6 support.]) +fi + +# PARANOIA is off by default (until we can test it with all features) +AC_ARG_ENABLE(paranoia, + AS_HELP_STRING([--enable-paranoia],[enable support for chroot/setuid (default is no)])) +AC_ARG_ENABLE(early_chroot, + AS_HELP_STRING([--enable-early-chroot],[enable chrooting prior to configuration (default is no)])) +# If someone enables early chroot, but does not enable paranoia, do so for +# them. +if test "$enable_paranoia" != "yes" && \ + test "$enable_early_chroot" = "yes" ; then + enable_paranoia="yes" +fi + +if test "$enable_paranoia" = "yes" ; then + AC_DEFINE([PARANOIA], [1], + [Define to any value to include Ari's PARANOIA patch.]) +fi +if test "$enable_early_chroot" = "yes" ; then + AC_DEFINE([EARLY_CHROOT], [1], + [Define to any value to chroot() prior to loading config.]) +fi + +AC_ARG_ENABLE(ipv4_pktinfo, + AS_HELP_STRING([--enable-ipv4-pktinfo],[enable use of pktinfo on IPv4 sockets (default is no)])) + +if test "$enable_ipv4_pktinfo" = "yes"; then + AC_DEFINE([USE_V4_PKTINFO], [1], + [Define to 1 to enable IPv4 packet info support.]) +fi + +AC_ARG_ENABLE(use_sockets, + AS_HELP_STRING([--enable-use-sockets],[use the standard BSD socket API (default is no)])) + +if test "$enable_use_sockets" = "yes"; then + AC_DEFINE([USE_SOCKETS], [1], + [Define to 1 to use the standard BSD socket API.]) +fi + +# Try to hnadle incorrect byte order for secs field +# This is off by default +AC_ARG_ENABLE(secs_byteorder, + AS_HELP_STRING([--enable-secs-byteorder],[Correct bad byteorders in the secs field (default is no).])) + +if test "$enable_secs_byteorder" = "yes" ; then + AC_DEFINE([SECS_BYTEORDER], [1], + [Define to correct bad byteorders in secs field.]) +fi + +# Include the PID in the log messages. This is useful when there may +# be multiple instances of a program. +# This is off by default +AC_ARG_ENABLE(log_pid, + AS_HELP_STRING([--enable-log-pid],[Include PIDs in syslog messages (default is no).])) +if test "$enable_log_pid" = "yes" ; then + AC_DEFINE([USE_LOG_PID], [1], + [Define to include PIDs in syslog messages.]) +fi + +# Allow for binary search when inserting v4 leases into queues +AC_ARG_ENABLE(binary_leases, + AS_HELP_STRING([--enable-binary-leases],[enable support for binary insertion of leases (default is no)])) +# binary_leases is off by default. +if test "$enable_binary_leases" = "yes"; then + AC_DEFINE([BINARY_LEASES], [1], + [Define to support binary insertion of leases into queues.]) +else + enable_binary_leases="no" +fi + +# Testing section + +DISTCHECK_ATF_CONFIGURE_FLAG= +atf_path="no" +AC_ARG_WITH([atf], + AS_HELP_STRING([--with-atf=PATH],[specify location where atf was installed (or "bind")]), + [atf_path="$withval"]) +AM_CONDITIONAL(BIND_ATF, test "$atf_path" = "bind") +if test "$atf_path" = "bind" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=bind" + atf_pcp="bind" + atf_path="\${top_srcdir}/bind/atf" + ATF_CFLAGS="-I$atf_path/include -DUNIT_TEST" + ATF_LDFLAGS="-L$atf_path/lib -latf-c" + ATF_BIN=`cd $srcdir; pwd`/bind/atf/bin + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + BINDCONFIG="$BINDCONFIG --with-atf" +elif test "$atf_path" != "no" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path" + # Config path for pkg-config + atf_pcp="" + if test "$atf_path" != "yes" ; then + if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib/pkgconfig + elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib64/pkgconfig + fi + else + # Not specified, try some common paths + atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local" + for d in $atf_dirs + do + if test -f $d/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib/pkgconfig + atf_path=$d + elif test -f $d/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib64/pkgconfig + atf_path=$d + fi + done + fi + + if test "$atf_pcp" = "" ; then + AC_MSG_ERROR([Unable to find atf files in location specified]) + else + AC_CHECK_PROG([pkgcfg_found],[pkg-config],[pkg-config],[]) + if test "$pkgcfg_found" = ""; then + AC_MSG_ERROR([Could not locate ATF, pkg-config not installed]) + fi + ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST" + ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`" + if test -f $atf_pcp/atf-sh.pc ; then + ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin" + else + # older versions don't have atf-sh, try usual place + ATF_BIN=$atf_path/bin + fi + + if test ! -x $ATF_BIN/atf-run -o ! -x $ATF_BIN/atf-report ; then + AC_MSG_WARN([atf-run/atf-report not found, assuming they are in your path]) + fi + + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + fi +fi + +AM_CONDITIONAL(HAVE_ATF, test "$atf_pcp" != "") +AM_COND_IF([HAVE_ATF], [AC_DEFINE([HAVE_ATF], [1], [ATF framework specified?])]) +AC_SUBST(DISTCHECK_ATF_CONFIGURE_FLAG) + +### +### Path fun. Older versions of DHCP were installed in /usr/sbin, so we +### need to look there and potentially overwrite by default (but not if +### the user configures an alternate value). LOCALSTATEDIR is totally +### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and +### they would be insane for suggesting it. We need to look in /var/for +### 'db' and 'state/dhcp' for db files, and /var/run for pid files by +### default. +### +AC_PREFIX_PROGRAM(dhcpd) + +# XXX - isn't there SOME WAY to default autoconf to /var instead of +# /usr/local/var/no/one/has/this/please/stop/trying? +case "$localstatedir" in + '${prefix}/var') + localstatedir=/var + ;; +esac + +# Allow specification of alternate state files +AC_ARG_WITH(srv-lease-file, + AS_HELP_STRING([--with-srv-lease-file=PATH],[File for dhcpd leases + (default is LOCALSTATEDIR/db/dhcpd.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_DB], ["$withval"], + [File for dhcpd leases.])) + +AC_MSG_CHECKING([for dhcpd.leases location]) +if [[ "x$with_srv_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv_lease_file="${localstatedir}/db/dhcpd.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/state/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" + else + with_srv_lease_file="/etc/dhcpd.leases" + fi +fi +AC_MSG_RESULT($with_srv_lease_file) + +AC_ARG_WITH(srv6-lease-file, + AS_HELP_STRING([--with-srv6-lease-file=PATH],[File for dhcpd6 leases + (default is LOCALSTATEDIR/db/dhcpd6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_DB], ["$withval"], + [File for dhcpd6 leases.])) + +AC_MSG_CHECKING([for dhcpd6.leases location]) +if [[ "x$with_srv6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" + else + with_srv6_lease_file="/etc/dhcpd6.leases" + fi +fi +AC_MSG_RESULT($with_srv6_lease_file) + +AC_ARG_WITH(cli-lease-file, + AS_HELP_STRING([--with-cli-lease-file=PATH],[File for dhclient leases + (default is LOCALSTATEDIR/db/dhclient.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_DB], ["$withval"], + [File for dhclient leases.])) + +AC_MSG_CHECKING([for dhclient.leases location]) +if [[ "x$with_cli_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli_lease_file="${localstatedir}/db/dhclient.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/state/dhclient.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/lib/dhclient.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli_lease_file="${localstatedir}/etc/dhclient.leases" + else + with_cli_lease_file="/etc/dhclient.leases" + fi +fi +AC_MSG_RESULT($with_cli_lease_file) + +AC_ARG_WITH(cli6-lease-file, + AS_HELP_STRING([--with-cli6-lease-file=PATH],[File for dhclient6 leases + (default is LOCALSTATEDIR/db/dhclient6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_DB], ["$withval"], + [File for dhclient6 leases.])) + +AC_MSG_CHECKING([for dhclient6.leases location]) +if [[ "x$with_cli6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" + else + with_cli6_lease_file="/etc/dhclient6.leases" + fi +fi +AC_MSG_RESULT($with_cli6_lease_file) + +AC_ARG_WITH(srv-pid-file, + AS_HELP_STRING([--with-srv-pid-file=PATH],[File for dhcpd process information + (default is LOCALSTATEDIR/run/dhcpd.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_PID], ["$withval"], + [File for dhcpd process information.])) +AC_ARG_WITH(srv6-pid-file, + AS_HELP_STRING([--with-srv6-pid-file=PATH],[File for dhcpd6 process information + (default is LOCALSTATEDIR/run/dhcpd6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_PID], ["$withval"], + [File for dhcpd6 process information.])) +AC_ARG_WITH(cli-pid-file, + AS_HELP_STRING([--with-cli-pid-file=PATH],[File for dhclient process information + (default is LOCALSTATEDIR/run/dhclient.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_PID], ["$withval"], + [File for dhclient process information.])) +AC_ARG_WITH(cli6-pid-file, + AS_HELP_STRING([--with-cli6-pid-file=PATH],[File for dhclient6 process information + (default is LOCALSTATEDIR/run/dhclient6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_PID], ["$withval"], + [File for dhclient6 process information.])) +AC_ARG_WITH(relay-pid-file, + AS_HELP_STRING([--with-relay-pid-file=PATH],[File for dhcrelay process information + (default is LOCALSTATEDIR/run/dhcrelay.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"], + [File for dhcrelay process information.])) +AC_ARG_WITH(relay6-pid-file, + AS_HELP_STRING([--with-relay6-pid-file=PATH],[File for dhcrelay6 process information + (default is LOCALSTATEDIR/run/dhcrelay6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY6_PID], ["$withval"], + [File for dhcrelay6 process information.])) + +# Check basic types. +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T + +# Some systems need the u_intX_t types defined across. +AC_CHECK_TYPE([u_int8_t], [], [ + AC_TYPE_UINT8_T + AC_DEFINE(u_int8_t, [uint8_t], [Define a type for 8-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int16_t], [], [ + AC_TYPE_UINT16_T + AC_DEFINE(u_int16_t, [uint16_t], [Define a type for 16-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int32_t], [], [ + AC_TYPE_UINT32_T + AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int64_t], [], [ + AC_TYPE_UINT64_T + AC_DEFINE(u_int64_t, [uint64_t], [Define a type for 64-bit unsigned + integers.]) +]) + +# see if ifaddrs.h is available +AC_CHECK_HEADERS(ifaddrs.h) + +# figure out what IPv4 interface code to use +AC_CHECK_HEADERS(linux/types.h) # needed for linux/filter.h on old systems + +AC_CHECK_HEADER(linux/filter.h, DO_LPF=1, , +[ +#ifdef HAVE_LINUX_TYPES_H +#include <linux/types.h> +#endif +]) +if test -n "$DO_LPF" +then + AC_DEFINE([HAVE_LPF], [1], + [Define to 1 to use the Linux Packet Filter interface code.]) +else + AC_CHECK_HEADER(sys/dlpi.h, DO_DLPI=1) + if test -n "$DO_DLPI" + then + AC_DEFINE([HAVE_DLPI], [1], + [Define to 1 to use DLPI interface code.]) + else + AC_CHECK_HEADER(net/bpf.h, DO_BPF=1) + if test -n "$DO_BPF" + then + AC_DEFINE([HAVE_BPF], [1], + [Define to 1 to use the + Berkeley Packet Filter interface code.]) + fi + fi +fi + +# SIOCGLIFCONF uses some transport structures. Trick is not all platforms +# use the same structures. We like to use 'struct lifconf' and 'struct +# lifreq', but we'll use these other structures if they're present. HPUX +# does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an +# int value. +# +AC_MSG_CHECKING([for struct lifnum]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <sys/socket.h> + #include <net/if.h> +]], [[ struct lifnum a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVELIFNUM], [1], + [Define to 1 if the system has 'struct lifnum'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrconf]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrconf a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRCONF], [1], + [Define to 1 if the system has 'struct if_laddrconf'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrreq]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrreq a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRREQ], [1], + [Define to 1 if the system has 'struct if_laddrreq'.])],[AC_MSG_RESULT(no)]) + +# +# check for GCC noreturn attribute +# +AC_MSG_CHECKING(for GCC noreturn attribute) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void foo() __attribute__((noreturn));]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_DHCP_NORETURN], [__attribute__((noreturn))], + [Define to the string for a noreturn attribute.])],[AC_MSG_RESULT(no) + AC_DEFINE([ISC_DHCP_NORETURN], [], + [Define to the string for a noreturn attribute.])]) + +# Look for optional headers. +AC_CHECK_HEADERS(sys/socket.h net/if_dl.h net/if6.h regex.h) + +# Solaris needs some libraries for functions +AC_SEARCH_LIBS(socket, [socket]) +AC_SEARCH_LIBS(inet_ntoa, [nsl]) + +AC_SEARCH_LIBS(inet_aton, [socket nsl], , + AC_DEFINE([NEED_INET_ATON], [1], + [Define to 1 if the inet_aton() function is missing.])) + +# Check for a standalone regex library. +AC_SEARCH_LIBS(regcomp, [regex]) + +AC_CHECK_FUNCS(strlcat) + +# For HP/UX we need -lipv6 for if_nametoindex, perhaps others. +AC_SEARCH_LIBS(if_nametoindex, [ipv6]) + +# check for /dev/random (declares HAVE_DEV_RANDOM) +AC_MSG_CHECKING(for random device) +AC_ARG_WITH(randomdev, + AS_HELP_STRING([--with-randomdev=PATH],[Path for random device + (default is /dev/random)]), + use_randomdev="$withval", use_randomdev="unspec") +if test "$use_randomdev" = "unspec"; then + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT(unspecified) + AC_MSG_ERROR([ need --with-randomdev=PATH or --with-randomdev=no]) + fi + use_randomdev="/dev/random" +elif test "$use_randomdev" = "yes"; then + use_randomdev="/dev/random" +fi +if test "$use_randomdev" = "no"; then + AC_MSG_RESULT(disabled) + BINDCONFIG="$BINDCONFIG --with-randomdev=no" +else + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT($use_randomdev (unchecked)) + else + AC_MSG_RESULT($use_randomdev) + AC_CHECK_FILE($use_randomdev, + AC_DEFINE([HAVE_DEV_RANDOM], [1], + [Define to 1 if you have the /dev/random or other configured file.]), + AC_MSG_ERROR(cannot find $use_randomdev)) + fi + BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev" +fi + +BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll" +# check kqueue/epoll/devpoll alternative to select +AC_ARG_ENABLE(kqueue, + AS_HELP_STRING([--enable-kqueue],[use BSD kqueue (default is no)]), + want_kqueue="$enableval", want_kqueue="no") +if test "$want_kqueue" = "yes"; then + BINDIOMUX="--enable-kqueue" + AC_MSG_WARN([--enable-kqueue is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(epoll, + AS_HELP_STRING([--enable-epoll],[use Linux epoll (default is no)]), + want_epoll="$enableval", want_epoll="no") +if test "$want_epoll" = "yes"; then + BINDIOMUX="--enable-epoll" + AC_MSG_WARN([--enable-epoll is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(devpoll, + AS_HELP_STRING([--enable-devpoll],[use /dev/poll (default is no)]), + want_devpoll="$enableval", want_devpoll="no") +if test "$want_devpoll" = "yes"; then + BINDIOMUX="--enable-devpoll" + AC_MSG_WARN([--enable-devpoll is not supported: it may lead to issues such as server looping]) +fi +AC_SUBST(BINDIOMUX) + +# general extra bind configure arguments +AC_ARG_WITH(bind-extra-config, + AS_HELP_STRING([--with-bind-extra-config],[configure bind librairies + with some extra options (default is none)]), + use_xbindconfig="$withval", use_xbindconfig="") +case "$use_xbindconfig" in +yes|no|'') + ;; +*) + BINDCONFIG="$BINDCONFIG $use_xbindconfig" + AC_MSG_WARN([Most options to bind configure are not supported when used by ISC DHCP]) + ;; +esac + +# see if there is a "sa_len" field in our interface information structure +AC_CHECK_MEMBER(struct sockaddr.sa_len, + AC_DEFINE([HAVE_SA_LEN], [], + [Define to 1 if the sockaddr structure has a length field.]), + , + [#include <sys/socket.h>]) + +# figure out pointer size +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -I$srcdir" +AC_CHECK_SIZEOF(struct iaddr *, , [ +#include "includes/inet.h" +#include <stdio.h> +]) +CFLAGS="$SAVE_CFLAGS" + +# Solaris does not have the msg_control or msg_controlen members +# in the msghdr structure unless you define: +# +# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ +# +# See the "standards" man page for details. +# +# We check for the msg_control member, and if it is not found, we check +# again with the appropriate defines added to the CFLAGS. (In order to +# do this we have to remove the check from the cache, which is what the +# "unset" is for.) +AC_CHECK_MEMBER(struct msghdr.msg_control,, + [CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" + CFLAGS="$CFLAGS -D__EXTENSIONS__" + unset ac_cv_member_struct_msghdr_msg_control + AC_CHECK_MEMBER(struct msghdr.msg_control,, + [AC_MSG_ERROR([Missing msg_control member in + msg_control structure.])], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + ], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + +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 variables for bind dir +BINDSUBDIR= +BINDDIR= +BINDSRCDIR= +BINDLIBIRSDIR= +BINDLIBDNSDIR= +BINDLIBISCCFGDIR= +BINDLIBISCDIR= +DISTCHECK_LIBBIND_CONFIGURE_FLAG= +AC_ARG_WITH(libbind, + AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH]), + use_libbind="$withval", use_libbind="no") +case "$use_libbind" in +yes) + AC_MSG_ERROR([PATH is required in --with-libbind=PATH]) + ;; +no) + BINDSUBDIR="\${top_srcdir}/bind" + my_abs_srcdir=`cd $srcdir && pwd` + 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 + 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} + BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion" + fi + AC_CONFIG_FILES([$srcdir/bind/Makefile]) + + BINDLIBIRSDIR="$BINDSRCDIR/lib/irs" + BINDLIBDNSDIR="$BINDSRCDIR/lib/dns" + BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg" + BINDLIBISCDIR="$BINDSRCDIR/lib/isc" + ;; +*) + if test ! -d "$use_libbind"; then + AC_MSG_ERROR([Cannot find bind directory at $use_libbind]) + fi + if test ! -d "$use_libbind/include"; then + AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include]) + fi + if test ! -d "$use_libbind/lib"; then + 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" + DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind" + ;; +esac +AC_SUBST(BINDSUBDIR) +AC_SUBST(BINDDIR) +AC_SUBST(BINDSRCDIR) +AC_SUBST(BINDLIBIRSDIR) +AC_SUBST(BINDLIBDNSDIR) +AC_SUBST(BINDLIBISCCFGDIR) +AC_SUBST(BINDLIBISCDIR) +AC_SUBST(DISTCHECK_LIBBIND_CONFIGURE_FLAG) +AM_CONDITIONAL(HAVE_BINDDIR, test "$use_libbind" = "no") + +AC_ARG_ENABLE(bind_install, + AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is no).])) +if test "$enable_bind_install" = "yes" -a "$use_libbind" != "no"; then + AC_MSG_WARN([--enable-bind-install does nothing when --with-libbind is set]) +fi +AM_CONDITIONAL(INSTALL_BIND, test "$enable_bind_install" = "yes") + +# +# GNU libtool support +# +case "$build_os" in + sunos*) + # Just set the maximum command line length for sunos + # as it otherwise takes a exceptionally long time to + # work it out. Required for libtool. + + lt_cv_sys_max_cmd_len=4096 + ;; +esac + +want_libtool="no" +@BEGIN WITH LIBTOOL +LT_INIT +want_libtool="yes" +@END WITH LIBTOOL + +BINDLT= +AC_ARG_ENABLE(libtool, + AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]), + want_libtool="$enableval") +@BEGIN WITH LIBTOOL +if test "$want_libtool" = "no"; then + AC_MSG_ERROR([libtool configure is used but libtool is disabled?]) +fi +A=la +BINDLT=--with-libtool +@END WITH LIBTOOL +@BEGIN WITHOUT LIBTOOL +if test "$want_libtool" = "yes"; then + AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) + cd $srcdir; exec ./re-conf $ac_configure_args + AC_MSG_ERROR([Recovering failed]) +fi +A=a +@END WITHOUT LIBTOOL +AC_SUBST(A) +AC_SUBST(BINDLT) + +# OpenLDAP support. +AC_ARG_WITH(ldap, + AS_HELP_STRING([--with-ldap],[enable OpenLDAP support in dhcpd (default is no)]), + [ldap=$withval], + [ldap=no]) + +# OpenLDAP with SSL support. +AC_ARG_WITH(ldapcrypto, + AS_HELP_STRING([--with-ldapcrypto],[enable OpenLDAP crypto support in dhcpd (default is no)]), + [ldapcrypto=$withval], + [ldapcrypto=no]) + +# Gssapi to allow LDAP to authenticate with a keytab +AC_ARG_WITH(ldap-gssapi, + AC_HELP_STRING([--with-ldap-gssapi], + [enable krb5/gssapi authentication for OpenLDAP in dhcpd (default is no)]), + [ldap_gssapi=$withval], + [ldap_gssapi=no]) + + +# LDAP CASA auth support. +AC_ARG_WITH(ldapcasa, + AC_HELP_STRING([--with-ldapcasa], + [enable LDAP CASA auth support in dhcpd (default is no)]), + [ldapcasa=$withval], + [ldapcasa=no]) + +# OpenLDAP support is disabled by default, if enabled then SSL support is an +# extra optional that is also disabled by default. Enabling LDAP SSL support +# implies enabling LDAP support. Similarly, KRB5 support implies LDAP support, +# but doesn't include SSL. The two are not dependant. +if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then + saved_LIBS="$LIBS" + LIBS="" + AC_SEARCH_LIBS(ldap_initialize, [ldap], , + AC_MSG_FAILURE([*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?])) + AC_SEARCH_LIBS(ber_pvt_opt_on, [lber], , + AC_MSG_FAILURE([*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?])) + if test x$ldap_gssapi = xyes ; then + AC_SEARCH_LIBS(krb5_init_context, [krb5], , + AC_MSG_FAILURE([*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?])) + fi + + # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS + AC_SUBST(LDAP_LIBS, [$LIBS]) + LIBS="$saved_LIBS" + + + AC_CHECK_HEADERS([ldap.h]) + AC_CHECK_FUNCS([inet_pton inet_ntop]) + + + LDAP_CFLAGS="-DLDAP_CONFIGURATION" + + if test x$ldapcasa = xyes ; then + AC_CHECK_HEADERS([micasa_mgmd.h],[ + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH" + ], AC_MSG_FAILURE([*** Cannot find micasa_mgmd.h for ldap casa auth support])) + fi + + if test x$ldapcrypto = xyes ; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL" + fi + + if test x$ldap_gssapi = xyes; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI" + fi + + AC_SUBST(LDAP_CFLAGS, [$LDAP_CFLAGS]) +fi + +# Append selected warning levels to CFLAGS before substitution (but after +# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc). +CFLAGS="$CFLAGS $STD_CWARNINGS" + +# Try to add the bind and dhcp include directories +CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" + +case "$host" in +*-darwin*) + CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";; +*-solaris*) + # As of Solaris 11, ethernet dev files are in /dev/net + AC_CHECK_FILE(/dev/net, + [AC_DEFINE([USE_DEV_NET], [1], + [Define to 1 if ethernet devices are in /dev/net])]) + ;; +esac + +AC_C_FLEXIBLE_ARRAY_MEMBER + +AC_CONFIG_FILES([ + Makefile + client/Makefile + client/tests/Makefile + common/Makefile.am + common/Makefile + common/tests/Makefile + dhcpctl/Makefile.am + dhcpctl/Makefile + includes/Makefile + omapip/Makefile.am + omapip/Makefile + relay/Makefile + server/Makefile + tests/Makefile.am + tests/Makefile + tests/unittest.sh + server/tests/Makefile + doc/devel/doxyfile +]) +AC_OUTPUT + +@BEGIN WITH LIBTOOL +AC_MSG_NOTICE([postconfig: run automake in $srcdir]) +(cd $srcdir; automake) +AC_MSG_NOTICE([postconfig: rerun config.status]) +sh ./config.status +@END WITH LIBTOOL + +if test "$enable_dhcpv4o6" = "yes"; then + DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" +elif test "$enable_dhcpv6" != "no"; then + DHCP_VERSIONS="DHCPv4 and DHCPv6" +else + DHCP_VERSIONS="DHCPv4" +fi + +cat > config.report << END + + ISC DHCP source configure results: + -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +Package: + Name: $PACKAGE_NAME + Version: $PACKAGE_VERSION + +C Compiler: $CC + +Flags: + DEFS: $DEFS + CFLAGS: $CFLAGS + +DHCP versions: $DHCP_VERSIONS + +Features: + debug: $enable_debug + failover: $enable_failover + execute: $enable_execute + binary-leases: $enable_binary_leases + dhcpv6: $enable_dhcpv6 + delayed-ack: $enable_delayed_ack + +Developer: + ATF unittests : $atf_path + +END +# TODO: Add Perl system tests + +if test "$atf_path" != "no" +then +echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report +echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report +echo "ATF_BIN : $ATF_BIN" >> config.report +echo +fi + +cat config.report + +echo +echo Now you can type "make" to build ISC DHCP +echo diff --git a/configure.ac-lt b/configure.ac-lt new file mode 100644 index 00000000..338879b4 --- /dev/null +++ b/configure.ac-lt @@ -0,0 +1,1008 @@ +AC_INIT([DHCP],[4.4.0-dev],[dhcp-users@isc.org]) + + +# we specify "foreign" to avoid having to have the GNU mandated files, +# like AUTHORS, COPYING, and such +AM_INIT_AUTOMAKE([foreign subdir-objects]) + +# we specify AM_MAINTAINER_MODE to avoid problems with rebuilding +# the configure and makefiles. Without it users doing things that +# change the timestamps on the code, like checking it into a cvs +# tree, could trigger a rebuild of the infrastructure files which +# might fail if they don't have the correct tools. +AM_MAINTAINER_MODE + +AC_CANONICAL_HOST + +# We want to turn on warnings if we are using gcc and the user did +# not specify CFLAGS. The autoconf check for the C compiler sets the +# CFLAGS if gcc is used, so we will save it before we run that check. +SAVE_CFLAGS="$CFLAGS" + +# Now find our C compiler. +AC_PROG_CC + +# Suppress warnings about --datarootdir +AC_DEFUN([AC_DATAROOTDIR_CHECKED]) + +# If we have gcc, and AC_PROG_CC changed the flags, then we know the +# user did not specify any flags. Add warnings in this case. +if test "$GCC" = "yes"; then + if test "$CFLAGS" != "$SAVE_CFLAGS"; then + STD_CWARNINGS="$STD_CWARNINGS -Wall -Werror -fno-strict-aliasing" + fi +fi + +# We can have some flags to pass to bind configure +BINDCONFIG= +if test "$cross_compiling" = "yes"; then + BINDCONFIG="--host=$host" +fi +# Pass CFLAGS and co. $ac_configure_args looks like "'arg1' 'arg2' ..." +# and as there can be a space inside an argument some magic is required. +# This sets $1 ... $N to my_configure_args, arg1 ... argN +eval "set my_configure_args $ac_configure_args" +# remove my_configure_args, i.e., the guard against empty $ac_configure_args +shift +# iterate on arguments and copying 'arg' when it begins by an upper case +for a +do + case $a in + [[A-Z]]*) BINDCONFIG="$BINDCONFIG '$a'" ;; + esac +done +AC_SUBST(BINDCONFIG) + +# POSIX doesn't include the IPv6 Advanced Socket API and glibc hides +# parts of the IPv6 Advanced Socket API as a result. This is stupid +# as it breaks how the two halves (Basic and Advanced) of the IPv6 +# Socket API were designed to be used but we have to live with it. +# Use this to define _GNU_SOURCE to pull in the IPv6 Advanced Socket API. +AC_USE_SYSTEM_EXTENSIONS + +AC_PROG_RANLIB + +AC_PATH_PROG(AR, ar) +AC_SUBST(AR) + +if test "X$AR" = "X"; then + AC_MSG_ERROR([ +ar program not found. Please fix your PATH to include the directory in +which ar resides, or set AR in the environment with the full path to ar.]) +fi + +AC_CONFIG_HEADERS([includes/config.h]) + +# we sometimes need to know byte order for building packets +AC_C_BIGENDIAN(AC_SUBST(byte_order, BIG_ENDIAN), + AC_SUBST(byte_order, LITTLE_ENDIAN)) +AC_DEFINE_UNQUOTED([DHCP_BYTE_ORDER], [$byte_order], + [Define to BIG_ENDIAN for MSB (Motorola or SPARC CPUs) + or LITTLE_ENDIAN for LSB (Intel CPUs).]) + +# Optional compile-time DEBUGging. +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug],[create a debug-only version of the software (default is no).]), + [case "${enableval}" in + yes) enable_debug=yes + AC_DEFINE([DEBUG], [1], + [Define to compile debug-only DHCP software.]) + # Just override CFLAGS totally to remove optimization. + CFLAGS="-g";; + no) enable_debug=no ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; + esac],[enable_debug=no]) + +# XXX: there are actually quite a lot more DEBUG_ features we could enable, +# but I don't want to pollute the --help space. +# +#/* #define DEBUG_TOKENS */ +#/* #define DEBUG_PACKET */ +#/* #define DEBUG_EXPRESSIONS */ +#/* #define DEBUG_FIND_LEASE */ +#/* #define DEBUG_EXPRESSION_PARSE */ +#/* #define DEBUG_CLASS_MATCHING */ +#/* #define DEBUG_MEMORY_LEAKAGE */ +#/* #define DEBUG_MALLOC_POOL */ +#/* #define DEBUG_LEASE_STATE_TRANSITIONS */ +#/* #define DEBUG_RC_HISTORY */ +#/* #define DEBUG_RC_HISTORY_EXHAUSTIVELY */ +#/* #define RC_HISTORY_MAX 10240 */ +#/* #define POINTER_DEBUG */ +#/* #define DEBUG_FAILOVER_MESSAGES */ +#/* #define DEBUG_FAILOVER_TIMING */ +#/* #define DEBUG_DUMP_ALL_LEASES */ + +# Failover optional compile-time feature. +AC_ARG_ENABLE(failover, + AS_HELP_STRING([--enable-failover],[enable support for failover (default is yes)])) +# Failover is on by default, so define if it is not explicitly disabled. +if test "$enable_failover" != "no"; then + enable_failover="yes" + AC_DEFINE([FAILOVER_PROTOCOL], [1], + [Define to include Failover Protocol support.]) +fi + +# execute() support. +AC_ARG_ENABLE(execute, + AS_HELP_STRING([--enable-execute],[enable support for execute() in config (default is yes)])) +# execute() is on by default, so define if it is not explicitly disabled. +if test "$enable_execute" != "no" ; then + enable_execute="yes" + AC_DEFINE([ENABLE_EXECUTE], [1], + [Define to include execute() config language support.]) +fi + +# Server tracing support. +AC_ARG_ENABLE(tracing, + AS_HELP_STRING([--enable-tracing],[enable support for server activity tracing (default is yes)])) +# tracing is on by default, so define if it is not explicitly disabled. +if test "$enable_tracing" != "no" ; then + AC_DEFINE([TRACING], [1], + [Define to include server activity tracing support.]) +fi + +# Delayed-ack feature support (experimental). +AC_ARG_ENABLE(delayed_ack, + AS_HELP_STRING([--enable-delayed-ack],[queues multiple DHCPACK replies (default is no)])) +if test "$enable_delayed_ack" = "yes"; then + AC_DEFINE([DELAYED_ACK], [1], + [Define to queue multiple DHCPACK replies per fsync.]) +else + enable_delayed_ack="no" +fi + +# DHCPv6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv6, + AS_HELP_STRING([--enable-dhcpv6],[enable support for DHCPv6 (default is yes)])) +# DHCPv6 is on by default, so define if it is not explicitly disabled. +if test "$enable_dhcpv6" != "no"; then + enable_dhcpv6="yes" + AC_DEFINE([DHCPv6], [1], + [Define to 1 to include DHCPv6 support.]) +fi + +# DHCPv4o6 optional compile-time feature. +AC_ARG_ENABLE(dhcpv4o6, + AS_HELP_STRING([--enable-dhcpv4o6],[enable support for DHCPv4-over-DHCPv6 (default is no)])) +# DHCPv4o6 is off by default, so define if it is explicitly enabled. +if test "$enable_dhcpv4o6" = "yes"; then + # DHCPv4o6 requires DHCPv6 + if test "$enable_dhcpv6" = "no"; then + AC_MSG_ERROR([dhcpv4o6 requires dhcpv6]) + fi + # DHCPv4o6 is not yet compatible with delayed-ack + if test "$enable_delayed_ack" = "yes"; then + AC_MSG_ERROR([dhcpv4o6 is not compatible with delayed-ack]) + fi + AC_DEFINE([DHCP4o6], [1], + [Define to 1 to include DHCPv4 over DHCPv6 support.]) +fi + +# PARANOIA is off by default (until we can test it with all features) +AC_ARG_ENABLE(paranoia, + AS_HELP_STRING([--enable-paranoia],[enable support for chroot/setuid (default is no)])) +AC_ARG_ENABLE(early_chroot, + AS_HELP_STRING([--enable-early-chroot],[enable chrooting prior to configuration (default is no)])) +# If someone enables early chroot, but does not enable paranoia, do so for +# them. +if test "$enable_paranoia" != "yes" && \ + test "$enable_early_chroot" = "yes" ; then + enable_paranoia="yes" +fi + +if test "$enable_paranoia" = "yes" ; then + AC_DEFINE([PARANOIA], [1], + [Define to any value to include Ari's PARANOIA patch.]) +fi +if test "$enable_early_chroot" = "yes" ; then + AC_DEFINE([EARLY_CHROOT], [1], + [Define to any value to chroot() prior to loading config.]) +fi + +AC_ARG_ENABLE(ipv4_pktinfo, + AS_HELP_STRING([--enable-ipv4-pktinfo],[enable use of pktinfo on IPv4 sockets (default is no)])) + +if test "$enable_ipv4_pktinfo" = "yes"; then + AC_DEFINE([USE_V4_PKTINFO], [1], + [Define to 1 to enable IPv4 packet info support.]) +fi + +AC_ARG_ENABLE(use_sockets, + AS_HELP_STRING([--enable-use-sockets],[use the standard BSD socket API (default is no)])) + +if test "$enable_use_sockets" = "yes"; then + AC_DEFINE([USE_SOCKETS], [1], + [Define to 1 to use the standard BSD socket API.]) +fi + +# Try to hnadle incorrect byte order for secs field +# This is off by default +AC_ARG_ENABLE(secs_byteorder, + AS_HELP_STRING([--enable-secs-byteorder],[Correct bad byteorders in the secs field (default is no).])) + +if test "$enable_secs_byteorder" = "yes" ; then + AC_DEFINE([SECS_BYTEORDER], [1], + [Define to correct bad byteorders in secs field.]) +fi + +# Include the PID in the log messages. This is useful when there may +# be multiple instances of a program. +# This is off by default +AC_ARG_ENABLE(log_pid, + AS_HELP_STRING([--enable-log-pid],[Include PIDs in syslog messages (default is no).])) +if test "$enable_log_pid" = "yes" ; then + AC_DEFINE([USE_LOG_PID], [1], + [Define to include PIDs in syslog messages.]) +fi + +# Allow for binary search when inserting v4 leases into queues +AC_ARG_ENABLE(binary_leases, + AS_HELP_STRING([--enable-binary-leases],[enable support for binary insertion of leases (default is no)])) +# binary_leases is off by default. +if test "$enable_binary_leases" = "yes"; then + AC_DEFINE([BINARY_LEASES], [1], + [Define to support binary insertion of leases into queues.]) +else + enable_binary_leases="no" +fi + +# Testing section + +DISTCHECK_ATF_CONFIGURE_FLAG= +atf_path="no" +AC_ARG_WITH([atf], + AS_HELP_STRING([--with-atf=PATH],[specify location where atf was installed (or "bind")]), + [atf_path="$withval"]) +AM_CONDITIONAL(BIND_ATF, test "$atf_path" = "bind") +if test "$atf_path" = "bind" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=bind" + atf_pcp="bind" + atf_path="\${top_srcdir}/bind/atf" + ATF_CFLAGS="-I$atf_path/include -DUNIT_TEST" + ATF_LDFLAGS="-L$atf_path/lib -latf-c" + ATF_BIN=`cd $srcdir; pwd`/bind/atf/bin + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + BINDCONFIG="$BINDCONFIG --with-atf" +elif test "$atf_path" != "no" ; then + DISTCHECK_ATF_CONFIGURE_FLAG="--with-atf=$atf_path" + # Config path for pkg-config + atf_pcp="" + if test "$atf_path" != "yes" ; then + if test -f $atf_path/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib/pkgconfig + elif test -f $atf_path/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$atf_path/lib64/pkgconfig + fi + else + # Not specified, try some common paths + atf_dirs="/usr /usr/local /usr/pkg /opt /opt/local" + for d in $atf_dirs + do + if test -f $d/lib/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib/pkgconfig + atf_path=$d + elif test -f $d/lib64/pkgconfig/atf-c.pc ; then + atf_pcp=$d/lib64/pkgconfig + atf_path=$d + fi + done + fi + + if test "$atf_pcp" = "" ; then + AC_MSG_ERROR([Unable to find atf files in location specified]) + else + AC_CHECK_PROG([pkgcfg_found],[pkg-config],[pkg-config],[]) + if test "$pkgcfg_found" = ""; then + AC_MSG_ERROR([Could not locate ATF, pkg-config not installed]) + fi + ATF_CFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --cflags atf-c` -DUNIT_TEST" + ATF_LDFLAGS="`PKG_CONFIG_PATH=$atf_pcp pkg-config --libs atf-c`" + if test -f $atf_pcp/atf-sh.pc ; then + ATF_BIN="`PKG_CONFIG_PATH=$atf_pcp pkg-config --variable=exec_prefix atf-sh`/bin" + else + # older versions don't have atf-sh, try usual place + ATF_BIN=$atf_path/bin + fi + + if test ! -x $ATF_BIN/atf-run -o ! -x $ATF_BIN/atf-report ; then + AC_MSG_WARN([atf-run/atf-report not found, assuming they are in your path]) + fi + + AC_SUBST(ATF_CFLAGS) + AC_SUBST(ATF_LDFLAGS) + AC_SUBST(ATF_BIN) + fi +fi + +AM_CONDITIONAL(HAVE_ATF, test "$atf_pcp" != "") +AM_COND_IF([HAVE_ATF], [AC_DEFINE([HAVE_ATF], [1], [ATF framework specified?])]) +AC_SUBST(DISTCHECK_ATF_CONFIGURE_FLAG) + +### +### Path fun. Older versions of DHCP were installed in /usr/sbin, so we +### need to look there and potentially overwrite by default (but not if +### the user configures an alternate value). LOCALSTATEDIR is totally +### braindead. No one uses /usr/local/var/db/ nor /usr/local/var/run, and +### they would be insane for suggesting it. We need to look in /var/for +### 'db' and 'state/dhcp' for db files, and /var/run for pid files by +### default. +### +AC_PREFIX_PROGRAM(dhcpd) + +# XXX - isn't there SOME WAY to default autoconf to /var instead of +# /usr/local/var/no/one/has/this/please/stop/trying? +case "$localstatedir" in + '${prefix}/var') + localstatedir=/var + ;; +esac + +# Allow specification of alternate state files +AC_ARG_WITH(srv-lease-file, + AS_HELP_STRING([--with-srv-lease-file=PATH],[File for dhcpd leases + (default is LOCALSTATEDIR/db/dhcpd.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_DB], ["$withval"], + [File for dhcpd leases.])) + +AC_MSG_CHECKING([for dhcpd.leases location]) +if [[ "x$with_srv_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv_lease_file="${localstatedir}/db/dhcpd.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/state/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/state/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv_lease_file="${localstatedir}/lib/dhcp/dhcpd.leases" + else + with_srv_lease_file="${localstatedir}/lib/dhcpd.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv_lease_file="${localstatedir}/etc/dhcpd.leases" + else + with_srv_lease_file="/etc/dhcpd.leases" + fi +fi +AC_MSG_RESULT($with_srv_lease_file) + +AC_ARG_WITH(srv6-lease-file, + AS_HELP_STRING([--with-srv6-lease-file=PATH],[File for dhcpd6 leases + (default is LOCALSTATEDIR/db/dhcpd6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_DB], ["$withval"], + [File for dhcpd6 leases.])) + +AC_MSG_CHECKING([for dhcpd6.leases location]) +if [[ "x$with_srv6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_srv6_lease_file="${localstatedir}/db/dhcpd6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/state/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/state/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_srv6_lease_file="${localstatedir}/lib/dhcp/dhcpd6.leases" + else + with_srv6_lease_file="${localstatedir}/lib/dhcpd6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_srv6_lease_file="${localstatedir}/etc/dhcpd6.leases" + else + with_srv6_lease_file="/etc/dhcpd6.leases" + fi +fi +AC_MSG_RESULT($with_srv6_lease_file) + +AC_ARG_WITH(cli-lease-file, + AS_HELP_STRING([--with-cli-lease-file=PATH],[File for dhclient leases + (default is LOCALSTATEDIR/db/dhclient.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_DB], ["$withval"], + [File for dhclient leases.])) + +AC_MSG_CHECKING([for dhclient.leases location]) +if [[ "x$with_cli_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli_lease_file="${localstatedir}/db/dhclient.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/state/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/state/dhclient.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli_lease_file="${localstatedir}/lib/dhcp/dhclient.leases" + else + with_cli_lease_file="${localstatedir}/lib/dhclient.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli_lease_file="${localstatedir}/etc/dhclient.leases" + else + with_cli_lease_file="/etc/dhclient.leases" + fi +fi +AC_MSG_RESULT($with_cli_lease_file) + +AC_ARG_WITH(cli6-lease-file, + AS_HELP_STRING([--with-cli6-lease-file=PATH],[File for dhclient6 leases + (default is LOCALSTATEDIR/db/dhclient6.leases)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_DB], ["$withval"], + [File for dhclient6 leases.])) + +AC_MSG_CHECKING([for dhclient6.leases location]) +if [[ "x$with_cli6_lease_file" = "x" ]] ; then + if [[ -d "${localstatedir}/db" ]] ; then + with_cli6_lease_file="${localstatedir}/db/dhclient6.leases" + elif [[ -d "${localstatedir}/state" ]] ; then + if [[ -d "${localstatedir}/state/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/state/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/state/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/lib" ]] ; then + if [[ -d "${localstatedir}/lib/dhcp" ]] ; then + with_cli6_lease_file="${localstatedir}/lib/dhcp/dhclient6.leases" + else + with_cli6_lease_file="${localstatedir}/lib/dhclient6.leases" + fi + elif [[ -d "${localstatedir}/etc" ]] ; then + with_cli6_lease_file="${localstatedir}/etc/dhclient6.leases" + else + with_cli6_lease_file="/etc/dhclient6.leases" + fi +fi +AC_MSG_RESULT($with_cli6_lease_file) + +AC_ARG_WITH(srv-pid-file, + AS_HELP_STRING([--with-srv-pid-file=PATH],[File for dhcpd process information + (default is LOCALSTATEDIR/run/dhcpd.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD_PID], ["$withval"], + [File for dhcpd process information.])) +AC_ARG_WITH(srv6-pid-file, + AS_HELP_STRING([--with-srv6-pid-file=PATH],[File for dhcpd6 process information + (default is LOCALSTATEDIR/run/dhcpd6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCPD6_PID], ["$withval"], + [File for dhcpd6 process information.])) +AC_ARG_WITH(cli-pid-file, + AS_HELP_STRING([--with-cli-pid-file=PATH],[File for dhclient process information + (default is LOCALSTATEDIR/run/dhclient.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT_PID], ["$withval"], + [File for dhclient process information.])) +AC_ARG_WITH(cli6-pid-file, + AS_HELP_STRING([--with-cli6-pid-file=PATH],[File for dhclient6 process information + (default is LOCALSTATEDIR/run/dhclient6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCLIENT6_PID], ["$withval"], + [File for dhclient6 process information.])) +AC_ARG_WITH(relay-pid-file, + AS_HELP_STRING([--with-relay-pid-file=PATH],[File for dhcrelay process information + (default is LOCALSTATEDIR/run/dhcrelay.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"], + [File for dhcrelay process information.])) +AC_ARG_WITH(relay6-pid-file, + AS_HELP_STRING([--with-relay6-pid-file=PATH],[File for dhcrelay6 process information + (default is LOCALSTATEDIR/run/dhcrelay6.pid)]), + AC_DEFINE_UNQUOTED([_PATH_DHCRELAY6_PID], ["$withval"], + [File for dhcrelay6 process information.])) + +# Check basic types. +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T + +# Some systems need the u_intX_t types defined across. +AC_CHECK_TYPE([u_int8_t], [], [ + AC_TYPE_UINT8_T + AC_DEFINE(u_int8_t, [uint8_t], [Define a type for 8-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int16_t], [], [ + AC_TYPE_UINT16_T + AC_DEFINE(u_int16_t, [uint16_t], [Define a type for 16-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int32_t], [], [ + AC_TYPE_UINT32_T + AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned + integers.]) +]) +AC_CHECK_TYPE([u_int64_t], [], [ + AC_TYPE_UINT64_T + AC_DEFINE(u_int64_t, [uint64_t], [Define a type for 64-bit unsigned + integers.]) +]) + +# see if ifaddrs.h is available +AC_CHECK_HEADERS(ifaddrs.h) + +# figure out what IPv4 interface code to use +AC_CHECK_HEADERS(linux/types.h) # needed for linux/filter.h on old systems + +AC_CHECK_HEADER(linux/filter.h, DO_LPF=1, , +[ +#ifdef HAVE_LINUX_TYPES_H +#include <linux/types.h> +#endif +]) +if test -n "$DO_LPF" +then + AC_DEFINE([HAVE_LPF], [1], + [Define to 1 to use the Linux Packet Filter interface code.]) +else + AC_CHECK_HEADER(sys/dlpi.h, DO_DLPI=1) + if test -n "$DO_DLPI" + then + AC_DEFINE([HAVE_DLPI], [1], + [Define to 1 to use DLPI interface code.]) + else + AC_CHECK_HEADER(net/bpf.h, DO_BPF=1) + if test -n "$DO_BPF" + then + AC_DEFINE([HAVE_BPF], [1], + [Define to 1 to use the + Berkeley Packet Filter interface code.]) + fi + fi +fi + +# SIOCGLIFCONF uses some transport structures. Trick is not all platforms +# use the same structures. We like to use 'struct lifconf' and 'struct +# lifreq', but we'll use these other structures if they're present. HPUX +# does not define 'struct lifnum', but does use SIOCGLIFNUM - they use an +# int value. +# +AC_MSG_CHECKING([for struct lifnum]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <sys/socket.h> + #include <net/if.h> +]], [[ struct lifnum a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVELIFNUM], [1], + [Define to 1 if the system has 'struct lifnum'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrconf]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrconf a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRCONF], [1], + [Define to 1 if the system has 'struct if_laddrconf'.])],[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING([for struct if_laddrreq]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> + #include <net/if6.h> +]], [[ struct if_laddrreq a; +]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_PLATFORM_HAVEIF_LADDRREQ], [1], + [Define to 1 if the system has 'struct if_laddrreq'.])],[AC_MSG_RESULT(no)]) + +# +# check for GCC noreturn attribute +# +AC_MSG_CHECKING(for GCC noreturn attribute) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void foo() __attribute__((noreturn));]])],[AC_MSG_RESULT(yes) + AC_DEFINE([ISC_DHCP_NORETURN], [__attribute__((noreturn))], + [Define to the string for a noreturn attribute.])],[AC_MSG_RESULT(no) + AC_DEFINE([ISC_DHCP_NORETURN], [], + [Define to the string for a noreturn attribute.])]) + +# Look for optional headers. +AC_CHECK_HEADERS(sys/socket.h net/if_dl.h net/if6.h regex.h) + +# Solaris needs some libraries for functions +AC_SEARCH_LIBS(socket, [socket]) +AC_SEARCH_LIBS(inet_ntoa, [nsl]) + +AC_SEARCH_LIBS(inet_aton, [socket nsl], , + AC_DEFINE([NEED_INET_ATON], [1], + [Define to 1 if the inet_aton() function is missing.])) + +# Check for a standalone regex library. +AC_SEARCH_LIBS(regcomp, [regex]) + +AC_CHECK_FUNCS(strlcat) + +# For HP/UX we need -lipv6 for if_nametoindex, perhaps others. +AC_SEARCH_LIBS(if_nametoindex, [ipv6]) + +# check for /dev/random (declares HAVE_DEV_RANDOM) +AC_MSG_CHECKING(for random device) +AC_ARG_WITH(randomdev, + AS_HELP_STRING([--with-randomdev=PATH],[Path for random device + (default is /dev/random)]), + use_randomdev="$withval", use_randomdev="unspec") +if test "$use_randomdev" = "unspec"; then + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT(unspecified) + AC_MSG_ERROR([ need --with-randomdev=PATH or --with-randomdev=no]) + fi + use_randomdev="/dev/random" +elif test "$use_randomdev" = "yes"; then + use_randomdev="/dev/random" +fi +if test "$use_randomdev" = "no"; then + AC_MSG_RESULT(disabled) + BINDCONFIG="$BINDCONFIG --with-randomdev=no" +else + if test "$cross_compiling" = "yes"; then + AC_MSG_RESULT($use_randomdev (unchecked)) + else + AC_MSG_RESULT($use_randomdev) + AC_CHECK_FILE($use_randomdev, + AC_DEFINE([HAVE_DEV_RANDOM], [1], + [Define to 1 if you have the /dev/random or other configured file.]), + AC_MSG_ERROR(cannot find $use_randomdev)) + fi + BINDCONFIG="$BINDCONFIG --with-randomdev=$use_randomdev" +fi + +BINDIOMUX="--disable-kqueue --disable-epoll --disable-devpoll" +# check kqueue/epoll/devpoll alternative to select +AC_ARG_ENABLE(kqueue, + AS_HELP_STRING([--enable-kqueue],[use BSD kqueue (default is no)]), + want_kqueue="$enableval", want_kqueue="no") +if test "$want_kqueue" = "yes"; then + BINDIOMUX="--enable-kqueue" + AC_MSG_WARN([--enable-kqueue is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(epoll, + AS_HELP_STRING([--enable-epoll],[use Linux epoll (default is no)]), + want_epoll="$enableval", want_epoll="no") +if test "$want_epoll" = "yes"; then + BINDIOMUX="--enable-epoll" + AC_MSG_WARN([--enable-epoll is not supported: it may lead to issues such as server looping]) +fi +AC_ARG_ENABLE(devpoll, + AS_HELP_STRING([--enable-devpoll],[use /dev/poll (default is no)]), + want_devpoll="$enableval", want_devpoll="no") +if test "$want_devpoll" = "yes"; then + BINDIOMUX="--enable-devpoll" + AC_MSG_WARN([--enable-devpoll is not supported: it may lead to issues such as server looping]) +fi +AC_SUBST(BINDIOMUX) + +# general extra bind configure arguments +AC_ARG_WITH(bind-extra-config, + AS_HELP_STRING([--with-bind-extra-config],[configure bind librairies + with some extra options (default is none)]), + use_xbindconfig="$withval", use_xbindconfig="") +case "$use_xbindconfig" in +yes|no|'') + ;; +*) + BINDCONFIG="$BINDCONFIG $use_xbindconfig" + AC_MSG_WARN([Most options to bind configure are not supported when used by ISC DHCP]) + ;; +esac + +# see if there is a "sa_len" field in our interface information structure +AC_CHECK_MEMBER(struct sockaddr.sa_len, + AC_DEFINE([HAVE_SA_LEN], [], + [Define to 1 if the sockaddr structure has a length field.]), + , + [#include <sys/socket.h>]) + +# figure out pointer size +SAVE_CFLAGS="$CFLAGS" +CFLAGS="$CFLAGS -I$srcdir" +AC_CHECK_SIZEOF(struct iaddr *, , [ +#include "includes/inet.h" +#include <stdio.h> +]) +CFLAGS="$SAVE_CFLAGS" + +# Solaris does not have the msg_control or msg_controlen members +# in the msghdr structure unless you define: +# +# _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, and __EXTENSIONS__ +# +# See the "standards" man page for details. +# +# We check for the msg_control member, and if it is not found, we check +# again with the appropriate defines added to the CFLAGS. (In order to +# do this we have to remove the check from the cache, which is what the +# "unset" is for.) +AC_CHECK_MEMBER(struct msghdr.msg_control,, + [CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" + CFLAGS="$CFLAGS -D__EXTENSIONS__" + unset ac_cv_member_struct_msghdr_msg_control + AC_CHECK_MEMBER(struct msghdr.msg_control,, + [AC_MSG_ERROR([Missing msg_control member in + msg_control structure.])], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + ], + [ +#include <sys/types.h> +#include <sys/socket.h> + ]) + +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 variables for bind dir +BINDSUBDIR= +BINDDIR= +BINDSRCDIR= +BINDLIBIRSDIR= +BINDLIBDNSDIR= +BINDLIBISCCFGDIR= +BINDLIBISCDIR= +DISTCHECK_LIBBIND_CONFIGURE_FLAG= +AC_ARG_WITH(libbind, + AS_HELP_STRING([--with-libbind=PATH],[bind includes and libraries are in PATH]), + use_libbind="$withval", use_libbind="no") +case "$use_libbind" in +yes) + AC_MSG_ERROR([PATH is required in --with-libbind=PATH]) + ;; +no) + BINDSUBDIR="\${top_srcdir}/bind" + my_abs_srcdir=`cd $srcdir && pwd` + 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 + 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} + BINDSRCDIR="${my_abs_srcdir}/bind/bind-$bindversion" + fi + AC_CONFIG_FILES([$srcdir/bind/Makefile]) + + BINDLIBIRSDIR="$BINDSRCDIR/lib/irs" + BINDLIBDNSDIR="$BINDSRCDIR/lib/dns" + BINDLIBISCCFGDIR="$BINDSRCDIR/lib/isccfg" + BINDLIBISCDIR="$BINDSRCDIR/lib/isc" + ;; +*) + if test ! -d "$use_libbind"; then + AC_MSG_ERROR([Cannot find bind directory at $use_libbind]) + fi + if test ! -d "$use_libbind/include"; then + AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include]) + fi + if test ! -d "$use_libbind/lib"; then + 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" + DISTCHECK_LIBBIND_CONFIGURE_FLAG="--with-libbind=$use_libbind" + ;; +esac +AC_SUBST(BINDSUBDIR) +AC_SUBST(BINDDIR) +AC_SUBST(BINDSRCDIR) +AC_SUBST(BINDLIBIRSDIR) +AC_SUBST(BINDLIBDNSDIR) +AC_SUBST(BINDLIBISCCFGDIR) +AC_SUBST(BINDLIBISCDIR) +AC_SUBST(DISTCHECK_LIBBIND_CONFIGURE_FLAG) +AM_CONDITIONAL(HAVE_BINDDIR, test "$use_libbind" = "no") + +AC_ARG_ENABLE(bind_install, + AS_HELP_STRING([--enable-bind-install],[install bind includes and libraries (default is no).])) +if test "$enable_bind_install" = "yes" -a "$use_libbind" != "no"; then + AC_MSG_WARN([--enable-bind-install does nothing when --with-libbind is set]) +fi +AM_CONDITIONAL(INSTALL_BIND, test "$enable_bind_install" = "yes") + +# +# GNU libtool support +# +case "$build_os" in + sunos*) + # Just set the maximum command line length for sunos + # as it otherwise takes a exceptionally long time to + # work it out. Required for libtool. + + lt_cv_sys_max_cmd_len=4096 + ;; +esac + +want_libtool="no" + +BINDLT= +AC_ARG_ENABLE(libtool, + AS_HELP_STRING([--enable-libtool],[use GNU libtool for dynamic shared libraries (default is $default_libtool).]), + want_libtool="$enableval") +if test "$want_libtool" = "yes"; then +if test "$want_libtool" = "yes"; then + AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) + AC_MSG_WARN([legacy configure is used but libtool is enabled. Trying to recover...]) + cd $srcdir; exec ./re-conf $ac_configure_args + cd $srcdir; exec ./re-conf $ac_configure_args + AC_MSG_ERROR([Recovering failed]) + AC_MSG_ERROR([Recovering failed]) +fi +fi +A=a +A=a +AC_SUBST(A) +AC_SUBST(BINDLT) + +# OpenLDAP support. +AC_ARG_WITH(ldap, + AS_HELP_STRING([--with-ldap],[enable OpenLDAP support in dhcpd (default is no)]), + [ldap=$withval], + [ldap=no]) + +# OpenLDAP with SSL support. +AC_ARG_WITH(ldapcrypto, + AS_HELP_STRING([--with-ldapcrypto],[enable OpenLDAP crypto support in dhcpd (default is no)]), + [ldapcrypto=$withval], + [ldapcrypto=no]) + +# Gssapi to allow LDAP to authenticate with a keytab +AC_ARG_WITH(ldap-gssapi, + AC_HELP_STRING([--with-ldap-gssapi], + [enable krb5/gssapi authentication for OpenLDAP in dhcpd (default is no)]), + [ldap_gssapi=$withval], + [ldap_gssapi=no]) + + +# LDAP CASA auth support. +AC_ARG_WITH(ldapcasa, + AC_HELP_STRING([--with-ldapcasa], + [enable LDAP CASA auth support in dhcpd (default is no)]), + [ldapcasa=$withval], + [ldapcasa=no]) + +# OpenLDAP support is disabled by default, if enabled then SSL support is an +# extra optional that is also disabled by default. Enabling LDAP SSL support +# implies enabling LDAP support. Similarly, KRB5 support implies LDAP support, +# but doesn't include SSL. The two are not dependant. +if test x$ldap = xyes || test x$ldapcrypto = xyes || test x$ldap_gssapi = xyes; then + saved_LIBS="$LIBS" + LIBS="" + AC_SEARCH_LIBS(ldap_initialize, [ldap], , + AC_MSG_FAILURE([*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?])) + AC_SEARCH_LIBS(ber_pvt_opt_on, [lber], , + AC_MSG_FAILURE([*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?])) + if test x$ldap_gssapi = xyes ; then + AC_SEARCH_LIBS(krb5_init_context, [krb5], , + AC_MSG_FAILURE([*** Cannot find krb5_init_context with -lkrb5 - do you need to install a Kerberos Devel package?])) + fi + + # Create LDAP_LIBS which we specify them explicitly rather than lumping them in with LIBS + AC_SUBST(LDAP_LIBS, [$LIBS]) + LIBS="$saved_LIBS" + + + AC_CHECK_HEADERS([ldap.h]) + AC_CHECK_FUNCS([inet_pton inet_ntop]) + + + LDAP_CFLAGS="-DLDAP_CONFIGURATION" + + if test x$ldapcasa = xyes ; then + AC_CHECK_HEADERS([micasa_mgmd.h],[ + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_CASA_AUTH" + ], AC_MSG_FAILURE([*** Cannot find micasa_mgmd.h for ldap casa auth support])) + fi + + if test x$ldapcrypto = xyes ; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_SSL" + fi + + if test x$ldap_gssapi = xyes; then + LDAP_CFLAGS="$LDAP_CFLAGS -DLDAP_USE_GSSAPI" + fi + + AC_SUBST(LDAP_CFLAGS, [$LDAP_CFLAGS]) +fi + +# Append selected warning levels to CFLAGS before substitution (but after +# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) & etc). +CFLAGS="$CFLAGS $STD_CWARNINGS" + +# Try to add the bind and dhcp include directories +CFLAGS="$CFLAGS -I\$(top_srcdir)/includes -I$BINDDIR/include" + +case "$host" in +*-darwin*) + CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542";; +*-solaris*) + # As of Solaris 11, ethernet dev files are in /dev/net + AC_CHECK_FILE(/dev/net, + [AC_DEFINE([USE_DEV_NET], [1], + [Define to 1 if ethernet devices are in /dev/net])]) + ;; +esac + +AC_C_FLEXIBLE_ARRAY_MEMBER + +AC_CONFIG_FILES([ + Makefile + client/Makefile + client/tests/Makefile + common/Makefile.am + common/Makefile + common/tests/Makefile + dhcpctl/Makefile.am + dhcpctl/Makefile + includes/Makefile + omapip/Makefile.am + omapip/Makefile + relay/Makefile + server/Makefile + tests/Makefile.am + tests/Makefile + tests/unittest.sh + server/tests/Makefile + doc/devel/doxyfile +]) +AC_OUTPUT + + +if test "$enable_dhcpv4o6" = "yes"; then + DHCP_VERSIONS="DHCPv4, DHCPv6 and DHCPv4-over-DHCPv6" +elif test "$enable_dhcpv6" != "no"; then + DHCP_VERSIONS="DHCPv4 and DHCPv6" +else + DHCP_VERSIONS="DHCPv4" +fi + +cat > config.report << END + + ISC DHCP source configure results: + -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +Package: + Name: $PACKAGE_NAME + Version: $PACKAGE_VERSION + +C Compiler: $CC + +Flags: + DEFS: $DEFS + CFLAGS: $CFLAGS + +DHCP versions: $DHCP_VERSIONS + +Features: + debug: $enable_debug + failover: $enable_failover + execute: $enable_execute + binary-leases: $enable_binary_leases + dhcpv6: $enable_dhcpv6 + delayed-ack: $enable_delayed_ack + +Developer: + ATF unittests : $atf_path + +END +# TODO: Add Perl system tests + +if test "$atf_path" != "no" +then +echo "ATF_CFLAGS : $ATF_CFLAGS" >> config.report +echo "ATF_LDFLAGS : $ATF_LDFLAGS" >> config.report +echo "ATF_BIN : $ATF_BIN" >> config.report +echo +fi + +cat config.report + +echo +echo Now you can type "make" to build ISC DHCP +echo diff --git a/dhcpctl/Makefile.am b/dhcpctl/Makefile.am deleted file mode 100644 index 398f1e9d..00000000 --- a/dhcpctl/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -bin_PROGRAMS = omshell -lib_LIBRARIES = libdhcpctl.a -noinst_PROGRAMS = cltest -man_MANS = omshell.1 dhcpctl.3 -EXTRA_DIST = $(man_MANS) - -omshell_SOURCES = omshell.c -omshell_LDADD = libdhcpctl.a ../common/libdhcp.a ../omapip/libomapi.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 \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/libisc.a diff --git a/dhcpctl/Makefile.am.in b/dhcpctl/Makefile.am.in new file mode 100644 index 00000000..dc44e1ad --- /dev/null +++ b/dhcpctl/Makefile.am.in @@ -0,0 +1,21 @@ +bin_PROGRAMS = omshell +lib_LIBRARIES = libdhcpctl.@A@ +noinst_PROGRAMS = cltest +man_MANS = omshell.1 dhcpctl.3 +EXTRA_DIST = $(man_MANS) + +omshell_SOURCES = omshell.c +omshell_LDADD = libdhcpctl.@A@ ../common/libdhcp.@A@ ../omapip/libomapi.@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@ \ + @BINDLIBIRSDIR@/libirs.@A@ \ + @BINDLIBDNSDIR@/libdns.@A@ \ + @BINDLIBISCCFGDIR@/libisccfg.@A@ \ + @BINDLIBISCDIR@/libisc.@A@ diff --git a/includes/Makefile.in b/includes/Makefile.in index ab2bf68b..a5c6f5e1 100644 --- a/includes/Makefile.in +++ b/includes/Makefile.in @@ -169,6 +169,7 @@ ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -187,6 +188,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ diff --git a/omapip/Makefile.am b/omapip/Makefile.am deleted file mode 100644 index e5fd4479..00000000 --- a/omapip/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -lib_LIBRARIES = libomapi.a -noinst_PROGRAMS = svtest - -libomapi_a_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \ - errwarn.c listener.c dispatch.c generic.c support.c \ - handle.c message.c convert.c hash.c auth.c inet_addr.c \ - array.c trace.c toisc.c iscprint.c isclib.c - -man_MANS = omapi.3 -EXTRA_DIST = $(man_MANS) - -svtest_SOURCES = test.c -svtest_LDADD = libomapi.a \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/libisc.a diff --git a/omapip/Makefile.am.in b/omapip/Makefile.am.in new file mode 100644 index 00000000..bf1dd09b --- /dev/null +++ b/omapip/Makefile.am.in @@ -0,0 +1,17 @@ +lib_LIBRARIES = libomapi.@A@ +noinst_PROGRAMS = svtest + +libomapi_@A@_SOURCES = protocol.c buffer.c alloc.c result.c connection.c \ + errwarn.c listener.c dispatch.c generic.c support.c \ + handle.c message.c convert.c hash.c auth.c inet_addr.c \ + array.c trace.c toisc.c iscprint.c isclib.c + +man_MANS = omapi.3 +EXTRA_DIST = $(man_MANS) + +svtest_SOURCES = test.c +svtest_LDADD = libomapi.@A@ \ + @BINDLIBIRSDIR@/libirs.@A@ \ + @BINDLIBDNSDIR@/libdns.@A@ \ + @BINDLIBISCCFGDIR@/libisccfg.@A@ \ + @BINDLIBISCDIR@/libisc.@A@ diff --git a/re-conf b/re-conf new file mode 100755 index 00000000..2a776fdb --- /dev/null +++ b/re-conf @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +# called by the configure place-holder + +cp configure.ac+lt configure.ac +autoreconf -i && ./configure $* diff --git a/relay/Makefile.am b/relay/Makefile.am index 0403426e..2ba5979a 100644 --- a/relay/Makefile.am +++ b/relay/Makefile.am @@ -2,11 +2,11 @@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' sbin_PROGRAMS = dhcrelay dhcrelay_SOURCES = dhcrelay.c -dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/libisc.a +dhcrelay_LDADD = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \ + @BINDLIBIRSDIR@/libirs.@A@ \ + @BINDLIBDNSDIR@/libdns.@A@ \ + @BINDLIBISCCFGDIR@/libisccfg.@A@ \ + @BINDLIBISCDIR@/libisc.@A@ man_MANS = dhcrelay.8 EXTRA_DIST = $(man_MANS) diff --git a/relay/Makefile.in b/relay/Makefile.in index aa6cd577..cb8fd321 100644 --- a/relay/Makefile.in +++ b/relay/Makefile.in @@ -103,9 +103,7 @@ am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" PROGRAMS = $(sbin_PROGRAMS) am_dhcrelay_OBJECTS = dhcrelay.$(OBJEXT) dhcrelay_OBJECTS = $(am_dhcrelay_OBJECTS) -dhcrelay_DEPENDENCIES = ../common/libdhcp.a ../omapip/libomapi.a \ - @BINDLIBIRSDIR@/libirs.a @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a @BINDLIBISCDIR@/libisc.a +dhcrelay_DEPENDENCIES = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false @@ -192,6 +190,7 @@ ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -210,6 +209,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -311,11 +311,11 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = -DLOCALSTATEDIR='"@localstatedir@"' dhcrelay_SOURCES = dhcrelay.c -dhcrelay_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ - @BINDLIBIRSDIR@/libirs.a \ - @BINDLIBDNSDIR@/libdns.a \ - @BINDLIBISCCFGDIR@/libisccfg.a \ - @BINDLIBISCDIR@/libisc.a +dhcrelay_LDADD = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \ + @BINDLIBIRSDIR@/libirs.@A@ \ + @BINDLIBDNSDIR@/libdns.@A@ \ + @BINDLIBISCCFGDIR@/libisccfg.@A@ \ + @BINDLIBISCDIR@/libisc.@A@ man_MANS = dhcrelay.8 EXTRA_DIST = $(man_MANS) @@ -408,15 +408,17 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcrelay.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` diff --git a/server/Makefile.am b/server/Makefile.am index 54feedf7..194f185e 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -15,10 +15,10 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \ dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c dhcpd_CFLAGS = $(LDAP_CFLAGS) -dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ - ../dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \ - $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \ - $(BINDLIBDIR)/libisc.a $(LDAP_LIBS) +dhcpd_LDADD = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \ + ../dhcpctl/libdhcpctl.@A@ $(BINDLIBDIR)/libirs.@A@ \ + $(BINDLIBDIR)/libdns.@A@ $(BINDLIBDIR)/libisccfg.@A@ \ + $(BINDLIBDIR)/libisc.@A@ $(LDAP_LIBS) man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5 EXTRA_DIST = $(man_MANS) diff --git a/server/Makefile.in b/server/Makefile.in index feac191b..37ac5c49 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -116,10 +116,10 @@ am_dhcpd_OBJECTS = dhcpd-dhcpd.$(OBJEXT) dhcpd-dhcp.$(OBJEXT) \ dhcpd-ldap_krb_helper.$(OBJEXT) dhcpd_OBJECTS = $(am_dhcpd_OBJECTS) am__DEPENDENCIES_1 = -dhcpd_DEPENDENCIES = ../common/libdhcp.a ../omapip/libomapi.a \ - ../dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \ - $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \ - $(BINDLIBDIR)/libisc.a $(am__DEPENDENCIES_1) +dhcpd_DEPENDENCIES = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \ + ../dhcpctl/libdhcpctl.@A@ $(BINDLIBDIR)/libirs.@A@ \ + $(BINDLIBDIR)/libdns.@A@ $(BINDLIBDIR)/libisccfg.@A@ \ + $(BINDLIBDIR)/libisc.@A@ $(am__DEPENDENCIES_1) dhcpd_LINK = $(CCLD) $(dhcpd_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) @@ -256,6 +256,7 @@ am__relativize = \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -274,6 +275,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -387,10 +389,10 @@ dhcpd_SOURCES = dhcpd.c dhcp.c bootp.c confpars.c db.c class.c failover.c \ dhcpv6.c mdb6.c ldap.c ldap_casa.c leasechain.c ldap_krb_helper.c dhcpd_CFLAGS = $(LDAP_CFLAGS) -dhcpd_LDADD = ../common/libdhcp.a ../omapip/libomapi.a \ - ../dhcpctl/libdhcpctl.a $(BINDLIBDIR)/libirs.a \ - $(BINDLIBDIR)/libdns.a $(BINDLIBDIR)/libisccfg.a \ - $(BINDLIBDIR)/libisc.a $(LDAP_LIBS) +dhcpd_LDADD = ../common/libdhcp.@A@ ../omapip/libomapi.@A@ \ + ../dhcpctl/libdhcpctl.@A@ $(BINDLIBDIR)/libirs.@A@ \ + $(BINDLIBDIR)/libdns.@A@ $(BINDLIBDIR)/libisccfg.@A@ \ + $(BINDLIBDIR)/libisc.@A@ $(LDAP_LIBS) man_MANS = dhcpd.8 dhcpd.conf.5 dhcpd.leases.5 EXTRA_DIST = $(man_MANS) @@ -501,15 +503,17 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcpd-stables.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am index a87c5e7b..b2552f0e 100644 --- a/server/tests/Makefile.am +++ b/server/tests/Makefile.am @@ -19,10 +19,13 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c \ ../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c \ ../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.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@ \ + $(BINDLIBDIR)/libirs.@A@ \ + $(BINDLIBDIR)/libdns.@A@ \ + $(BINDLIBDIR)/libisccfg.@A@ \ + $(BINDLIBDIR)/libisc.@A@ ATF_TESTS = if HAVE_ATF diff --git a/server/tests/Makefile.in b/server/tests/Makefile.in index b9183899..da10469a 100644 --- a/server/tests/Makefile.in +++ b/server/tests/Makefile.in @@ -110,12 +110,14 @@ am__dhcpd_unittests_SOURCES_DIST = ../dhcp.c ../bootp.c ../confpars.c \ ../stables.c ../salloc.c ../ddns.c ../dhcpleasequery.c \ ../dhcpv6.c ../mdb6.c ../ldap.c ../ldap_casa.c ../dhcpd.c \ ../leasechain.c simple_unittest.c -am__objects_1 = dhcp.$(OBJEXT) bootp.$(OBJEXT) confpars.$(OBJEXT) \ - db.$(OBJEXT) class.$(OBJEXT) failover.$(OBJEXT) \ - omapi.$(OBJEXT) mdb.$(OBJEXT) stables.$(OBJEXT) \ - salloc.$(OBJEXT) ddns.$(OBJEXT) dhcpleasequery.$(OBJEXT) \ - dhcpv6.$(OBJEXT) mdb6.$(OBJEXT) ldap.$(OBJEXT) \ - ldap_casa.$(OBJEXT) dhcpd.$(OBJEXT) leasechain.$(OBJEXT) +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = ../dhcp.$(OBJEXT) ../bootp.$(OBJEXT) \ + ../confpars.$(OBJEXT) ../db.$(OBJEXT) ../class.$(OBJEXT) \ + ../failover.$(OBJEXT) ../omapi.$(OBJEXT) ../mdb.$(OBJEXT) \ + ../stables.$(OBJEXT) ../salloc.$(OBJEXT) ../ddns.$(OBJEXT) \ + ../dhcpleasequery.$(OBJEXT) ../dhcpv6.$(OBJEXT) \ + ../mdb6.$(OBJEXT) ../ldap.$(OBJEXT) ../ldap_casa.$(OBJEXT) \ + ../dhcpd.$(OBJEXT) ../leasechain.$(OBJEXT) @HAVE_ATF_TRUE@am_dhcpd_unittests_OBJECTS = $(am__objects_1) \ @HAVE_ATF_TRUE@ simple_unittest.$(OBJEXT) dhcpd_unittests_OBJECTS = $(am_dhcpd_unittests_OBJECTS) @@ -180,10 +182,6 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/includes depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) @@ -272,6 +270,7 @@ am__relativize = \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" +A = @A@ ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ @@ -290,6 +289,7 @@ BINDLIBDNSDIR = @BINDLIBDNSDIR@ BINDLIBIRSDIR = @BINDLIBIRSDIR@ BINDLIBISCCFGDIR = @BINDLIBISCCFGDIR@ BINDLIBISCDIR = @BINDLIBISCDIR@ +BINDLT = @BINDLT@ BINDSRCDIR = @BINDSRCDIR@ BINDSUBDIR = @BINDSUBDIR@ CC = @CC@ @@ -399,10 +399,13 @@ DHCPSRC = ../dhcp.c ../bootp.c ../confpars.c ../db.c ../class.c \ ../ddns.c ../dhcpleasequery.c ../dhcpv6.c ../mdb6.c \ ../ldap.c ../ldap_casa.c ../dhcpd.c ../leasechain.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@ \ + $(BINDLIBDIR)/libirs.@A@ \ + $(BINDLIBDIR)/libdns.@A@ \ + $(BINDLIBDIR)/libisccfg.@A@ \ + $(BINDLIBDIR)/libisc.@A@ ATF_TESTS = $(am__append_1) @HAVE_ATF_TRUE@dhcpd_unittests_SOURCES = $(DHCPSRC) simple_unittest.c @@ -454,6 +457,33 @@ $(am__aclocal_m4_deps): clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +../$(am__dirstamp): + @$(MKDIR_P) .. + @: > ../$(am__dirstamp) +../$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) ../$(DEPDIR) + @: > ../$(DEPDIR)/$(am__dirstamp) +../dhcp.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../bootp.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../confpars.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../db.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../class.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../failover.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../omapi.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../mdb.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../stables.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../salloc.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../ddns.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../dhcpleasequery.$(OBJEXT): ../$(am__dirstamp) \ + ../$(DEPDIR)/$(am__dirstamp) +../dhcpv6.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../mdb6.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../ldap.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../ldap_casa.$(OBJEXT): ../$(am__dirstamp) \ + ../$(DEPDIR)/$(am__dirstamp) +../dhcpd.$(OBJEXT): ../$(am__dirstamp) ../$(DEPDIR)/$(am__dirstamp) +../leasechain.$(OBJEXT): ../$(am__dirstamp) \ + ../$(DEPDIR)/$(am__dirstamp) dhcpd_unittests$(EXEEXT): $(dhcpd_unittests_OBJECTS) $(dhcpd_unittests_DEPENDENCIES) $(EXTRA_dhcpd_unittests_DEPENDENCIES) @rm -f dhcpd_unittests$(EXEEXT) @@ -477,300 +507,51 @@ load_bal_unittests$(EXEEXT): $(load_bal_unittests_OBJECTS) $(load_bal_unittests_ mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f ../*.$(OBJEXT) distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bootp.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/class.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/confpars.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ddns.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcp.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcpd.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcpleasequery.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dhcpv6.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/failover.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/bootp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/class.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/confpars.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/db.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/ddns.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhcp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhcpd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhcpleasequery.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/dhcpv6.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/failover.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/ldap.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/ldap_casa.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/leasechain.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/mdb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/mdb6.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/omapi.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/salloc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@../$(DEPDIR)/stables.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash_unittest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldap.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldap_casa.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/leasechain.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/leaseq_unittest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/load_bal_unittest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdb.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdb6.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdb6_unittest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/omapi.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/salloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple_unittest.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stables.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` -dhcp.o: ../dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcp.o -MD -MP -MF $(DEPDIR)/dhcp.Tpo -c -o dhcp.o `test -f '../dhcp.c' || echo '$(srcdir)/'`../dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcp.Tpo $(DEPDIR)/dhcp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcp.c' object='dhcp.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcp.o `test -f '../dhcp.c' || echo '$(srcdir)/'`../dhcp.c - -dhcp.obj: ../dhcp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcp.obj -MD -MP -MF $(DEPDIR)/dhcp.Tpo -c -o dhcp.obj `if test -f '../dhcp.c'; then $(CYGPATH_W) '../dhcp.c'; else $(CYGPATH_W) '$(srcdir)/../dhcp.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcp.Tpo $(DEPDIR)/dhcp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcp.c' object='dhcp.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcp.obj `if test -f '../dhcp.c'; then $(CYGPATH_W) '../dhcp.c'; else $(CYGPATH_W) '$(srcdir)/../dhcp.c'; fi` - -bootp.o: ../bootp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bootp.o -MD -MP -MF $(DEPDIR)/bootp.Tpo -c -o bootp.o `test -f '../bootp.c' || echo '$(srcdir)/'`../bootp.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bootp.Tpo $(DEPDIR)/bootp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../bootp.c' object='bootp.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bootp.o `test -f '../bootp.c' || echo '$(srcdir)/'`../bootp.c - -bootp.obj: ../bootp.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT bootp.obj -MD -MP -MF $(DEPDIR)/bootp.Tpo -c -o bootp.obj `if test -f '../bootp.c'; then $(CYGPATH_W) '../bootp.c'; else $(CYGPATH_W) '$(srcdir)/../bootp.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bootp.Tpo $(DEPDIR)/bootp.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../bootp.c' object='bootp.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o bootp.obj `if test -f '../bootp.c'; then $(CYGPATH_W) '../bootp.c'; else $(CYGPATH_W) '$(srcdir)/../bootp.c'; fi` - -confpars.o: ../confpars.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT confpars.o -MD -MP -MF $(DEPDIR)/confpars.Tpo -c -o confpars.o `test -f '../confpars.c' || echo '$(srcdir)/'`../confpars.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/confpars.Tpo $(DEPDIR)/confpars.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../confpars.c' object='confpars.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o confpars.o `test -f '../confpars.c' || echo '$(srcdir)/'`../confpars.c - -confpars.obj: ../confpars.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT confpars.obj -MD -MP -MF $(DEPDIR)/confpars.Tpo -c -o confpars.obj `if test -f '../confpars.c'; then $(CYGPATH_W) '../confpars.c'; else $(CYGPATH_W) '$(srcdir)/../confpars.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/confpars.Tpo $(DEPDIR)/confpars.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../confpars.c' object='confpars.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o confpars.obj `if test -f '../confpars.c'; then $(CYGPATH_W) '../confpars.c'; else $(CYGPATH_W) '$(srcdir)/../confpars.c'; fi` - -db.o: ../db.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT db.o -MD -MP -MF $(DEPDIR)/db.Tpo -c -o db.o `test -f '../db.c' || echo '$(srcdir)/'`../db.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/db.Tpo $(DEPDIR)/db.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../db.c' object='db.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o db.o `test -f '../db.c' || echo '$(srcdir)/'`../db.c - -db.obj: ../db.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT db.obj -MD -MP -MF $(DEPDIR)/db.Tpo -c -o db.obj `if test -f '../db.c'; then $(CYGPATH_W) '../db.c'; else $(CYGPATH_W) '$(srcdir)/../db.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/db.Tpo $(DEPDIR)/db.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../db.c' object='db.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o db.obj `if test -f '../db.c'; then $(CYGPATH_W) '../db.c'; else $(CYGPATH_W) '$(srcdir)/../db.c'; fi` - -class.o: ../class.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT class.o -MD -MP -MF $(DEPDIR)/class.Tpo -c -o class.o `test -f '../class.c' || echo '$(srcdir)/'`../class.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/class.Tpo $(DEPDIR)/class.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../class.c' object='class.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o class.o `test -f '../class.c' || echo '$(srcdir)/'`../class.c - -class.obj: ../class.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT class.obj -MD -MP -MF $(DEPDIR)/class.Tpo -c -o class.obj `if test -f '../class.c'; then $(CYGPATH_W) '../class.c'; else $(CYGPATH_W) '$(srcdir)/../class.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/class.Tpo $(DEPDIR)/class.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../class.c' object='class.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o class.obj `if test -f '../class.c'; then $(CYGPATH_W) '../class.c'; else $(CYGPATH_W) '$(srcdir)/../class.c'; fi` - -failover.o: ../failover.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT failover.o -MD -MP -MF $(DEPDIR)/failover.Tpo -c -o failover.o `test -f '../failover.c' || echo '$(srcdir)/'`../failover.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/failover.Tpo $(DEPDIR)/failover.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../failover.c' object='failover.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o failover.o `test -f '../failover.c' || echo '$(srcdir)/'`../failover.c - -failover.obj: ../failover.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT failover.obj -MD -MP -MF $(DEPDIR)/failover.Tpo -c -o failover.obj `if test -f '../failover.c'; then $(CYGPATH_W) '../failover.c'; else $(CYGPATH_W) '$(srcdir)/../failover.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/failover.Tpo $(DEPDIR)/failover.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../failover.c' object='failover.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o failover.obj `if test -f '../failover.c'; then $(CYGPATH_W) '../failover.c'; else $(CYGPATH_W) '$(srcdir)/../failover.c'; fi` - -omapi.o: ../omapi.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT omapi.o -MD -MP -MF $(DEPDIR)/omapi.Tpo -c -o omapi.o `test -f '../omapi.c' || echo '$(srcdir)/'`../omapi.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/omapi.Tpo $(DEPDIR)/omapi.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../omapi.c' object='omapi.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o omapi.o `test -f '../omapi.c' || echo '$(srcdir)/'`../omapi.c - -omapi.obj: ../omapi.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT omapi.obj -MD -MP -MF $(DEPDIR)/omapi.Tpo -c -o omapi.obj `if test -f '../omapi.c'; then $(CYGPATH_W) '../omapi.c'; else $(CYGPATH_W) '$(srcdir)/../omapi.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/omapi.Tpo $(DEPDIR)/omapi.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../omapi.c' object='omapi.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o omapi.obj `if test -f '../omapi.c'; then $(CYGPATH_W) '../omapi.c'; else $(CYGPATH_W) '$(srcdir)/../omapi.c'; fi` - -mdb.o: ../mdb.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mdb.o -MD -MP -MF $(DEPDIR)/mdb.Tpo -c -o mdb.o `test -f '../mdb.c' || echo '$(srcdir)/'`../mdb.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mdb.Tpo $(DEPDIR)/mdb.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../mdb.c' object='mdb.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mdb.o `test -f '../mdb.c' || echo '$(srcdir)/'`../mdb.c - -mdb.obj: ../mdb.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mdb.obj -MD -MP -MF $(DEPDIR)/mdb.Tpo -c -o mdb.obj `if test -f '../mdb.c'; then $(CYGPATH_W) '../mdb.c'; else $(CYGPATH_W) '$(srcdir)/../mdb.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mdb.Tpo $(DEPDIR)/mdb.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../mdb.c' object='mdb.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mdb.obj `if test -f '../mdb.c'; then $(CYGPATH_W) '../mdb.c'; else $(CYGPATH_W) '$(srcdir)/../mdb.c'; fi` - -stables.o: ../stables.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT stables.o -MD -MP -MF $(DEPDIR)/stables.Tpo -c -o stables.o `test -f '../stables.c' || echo '$(srcdir)/'`../stables.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/stables.Tpo $(DEPDIR)/stables.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../stables.c' object='stables.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o stables.o `test -f '../stables.c' || echo '$(srcdir)/'`../stables.c - -stables.obj: ../stables.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT stables.obj -MD -MP -MF $(DEPDIR)/stables.Tpo -c -o stables.obj `if test -f '../stables.c'; then $(CYGPATH_W) '../stables.c'; else $(CYGPATH_W) '$(srcdir)/../stables.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/stables.Tpo $(DEPDIR)/stables.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../stables.c' object='stables.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o stables.obj `if test -f '../stables.c'; then $(CYGPATH_W) '../stables.c'; else $(CYGPATH_W) '$(srcdir)/../stables.c'; fi` - -salloc.o: ../salloc.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT salloc.o -MD -MP -MF $(DEPDIR)/salloc.Tpo -c -o salloc.o `test -f '../salloc.c' || echo '$(srcdir)/'`../salloc.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/salloc.Tpo $(DEPDIR)/salloc.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../salloc.c' object='salloc.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o salloc.o `test -f '../salloc.c' || echo '$(srcdir)/'`../salloc.c - -salloc.obj: ../salloc.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT salloc.obj -MD -MP -MF $(DEPDIR)/salloc.Tpo -c -o salloc.obj `if test -f '../salloc.c'; then $(CYGPATH_W) '../salloc.c'; else $(CYGPATH_W) '$(srcdir)/../salloc.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/salloc.Tpo $(DEPDIR)/salloc.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../salloc.c' object='salloc.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o salloc.obj `if test -f '../salloc.c'; then $(CYGPATH_W) '../salloc.c'; else $(CYGPATH_W) '$(srcdir)/../salloc.c'; fi` - -ddns.o: ../ddns.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ddns.o -MD -MP -MF $(DEPDIR)/ddns.Tpo -c -o ddns.o `test -f '../ddns.c' || echo '$(srcdir)/'`../ddns.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ddns.Tpo $(DEPDIR)/ddns.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ddns.c' object='ddns.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ddns.o `test -f '../ddns.c' || echo '$(srcdir)/'`../ddns.c - -ddns.obj: ../ddns.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ddns.obj -MD -MP -MF $(DEPDIR)/ddns.Tpo -c -o ddns.obj `if test -f '../ddns.c'; then $(CYGPATH_W) '../ddns.c'; else $(CYGPATH_W) '$(srcdir)/../ddns.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ddns.Tpo $(DEPDIR)/ddns.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ddns.c' object='ddns.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ddns.obj `if test -f '../ddns.c'; then $(CYGPATH_W) '../ddns.c'; else $(CYGPATH_W) '$(srcdir)/../ddns.c'; fi` - -dhcpleasequery.o: ../dhcpleasequery.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpleasequery.o -MD -MP -MF $(DEPDIR)/dhcpleasequery.Tpo -c -o dhcpleasequery.o `test -f '../dhcpleasequery.c' || echo '$(srcdir)/'`../dhcpleasequery.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpleasequery.Tpo $(DEPDIR)/dhcpleasequery.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpleasequery.c' object='dhcpleasequery.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpleasequery.o `test -f '../dhcpleasequery.c' || echo '$(srcdir)/'`../dhcpleasequery.c - -dhcpleasequery.obj: ../dhcpleasequery.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpleasequery.obj -MD -MP -MF $(DEPDIR)/dhcpleasequery.Tpo -c -o dhcpleasequery.obj `if test -f '../dhcpleasequery.c'; then $(CYGPATH_W) '../dhcpleasequery.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpleasequery.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpleasequery.Tpo $(DEPDIR)/dhcpleasequery.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpleasequery.c' object='dhcpleasequery.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpleasequery.obj `if test -f '../dhcpleasequery.c'; then $(CYGPATH_W) '../dhcpleasequery.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpleasequery.c'; fi` - -dhcpv6.o: ../dhcpv6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpv6.o -MD -MP -MF $(DEPDIR)/dhcpv6.Tpo -c -o dhcpv6.o `test -f '../dhcpv6.c' || echo '$(srcdir)/'`../dhcpv6.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpv6.Tpo $(DEPDIR)/dhcpv6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpv6.c' object='dhcpv6.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpv6.o `test -f '../dhcpv6.c' || echo '$(srcdir)/'`../dhcpv6.c - -dhcpv6.obj: ../dhcpv6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpv6.obj -MD -MP -MF $(DEPDIR)/dhcpv6.Tpo -c -o dhcpv6.obj `if test -f '../dhcpv6.c'; then $(CYGPATH_W) '../dhcpv6.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpv6.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpv6.Tpo $(DEPDIR)/dhcpv6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpv6.c' object='dhcpv6.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpv6.obj `if test -f '../dhcpv6.c'; then $(CYGPATH_W) '../dhcpv6.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpv6.c'; fi` - -mdb6.o: ../mdb6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mdb6.o -MD -MP -MF $(DEPDIR)/mdb6.Tpo -c -o mdb6.o `test -f '../mdb6.c' || echo '$(srcdir)/'`../mdb6.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mdb6.Tpo $(DEPDIR)/mdb6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../mdb6.c' object='mdb6.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mdb6.o `test -f '../mdb6.c' || echo '$(srcdir)/'`../mdb6.c - -mdb6.obj: ../mdb6.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT mdb6.obj -MD -MP -MF $(DEPDIR)/mdb6.Tpo -c -o mdb6.obj `if test -f '../mdb6.c'; then $(CYGPATH_W) '../mdb6.c'; else $(CYGPATH_W) '$(srcdir)/../mdb6.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/mdb6.Tpo $(DEPDIR)/mdb6.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../mdb6.c' object='mdb6.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o mdb6.obj `if test -f '../mdb6.c'; then $(CYGPATH_W) '../mdb6.c'; else $(CYGPATH_W) '$(srcdir)/../mdb6.c'; fi` - -ldap.o: ../ldap.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ldap.o -MD -MP -MF $(DEPDIR)/ldap.Tpo -c -o ldap.o `test -f '../ldap.c' || echo '$(srcdir)/'`../ldap.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ldap.Tpo $(DEPDIR)/ldap.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ldap.c' object='ldap.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ldap.o `test -f '../ldap.c' || echo '$(srcdir)/'`../ldap.c - -ldap.obj: ../ldap.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ldap.obj -MD -MP -MF $(DEPDIR)/ldap.Tpo -c -o ldap.obj `if test -f '../ldap.c'; then $(CYGPATH_W) '../ldap.c'; else $(CYGPATH_W) '$(srcdir)/../ldap.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ldap.Tpo $(DEPDIR)/ldap.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ldap.c' object='ldap.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ldap.obj `if test -f '../ldap.c'; then $(CYGPATH_W) '../ldap.c'; else $(CYGPATH_W) '$(srcdir)/../ldap.c'; fi` - -ldap_casa.o: ../ldap_casa.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ldap_casa.o -MD -MP -MF $(DEPDIR)/ldap_casa.Tpo -c -o ldap_casa.o `test -f '../ldap_casa.c' || echo '$(srcdir)/'`../ldap_casa.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ldap_casa.Tpo $(DEPDIR)/ldap_casa.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ldap_casa.c' object='ldap_casa.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ldap_casa.o `test -f '../ldap_casa.c' || echo '$(srcdir)/'`../ldap_casa.c - -ldap_casa.obj: ../ldap_casa.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ldap_casa.obj -MD -MP -MF $(DEPDIR)/ldap_casa.Tpo -c -o ldap_casa.obj `if test -f '../ldap_casa.c'; then $(CYGPATH_W) '../ldap_casa.c'; else $(CYGPATH_W) '$(srcdir)/../ldap_casa.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ldap_casa.Tpo $(DEPDIR)/ldap_casa.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../ldap_casa.c' object='ldap_casa.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ldap_casa.obj `if test -f '../ldap_casa.c'; then $(CYGPATH_W) '../ldap_casa.c'; else $(CYGPATH_W) '$(srcdir)/../ldap_casa.c'; fi` - -dhcpd.o: ../dhcpd.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpd.o -MD -MP -MF $(DEPDIR)/dhcpd.Tpo -c -o dhcpd.o `test -f '../dhcpd.c' || echo '$(srcdir)/'`../dhcpd.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpd.Tpo $(DEPDIR)/dhcpd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpd.c' object='dhcpd.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpd.o `test -f '../dhcpd.c' || echo '$(srcdir)/'`../dhcpd.c - -dhcpd.obj: ../dhcpd.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dhcpd.obj -MD -MP -MF $(DEPDIR)/dhcpd.Tpo -c -o dhcpd.obj `if test -f '../dhcpd.c'; then $(CYGPATH_W) '../dhcpd.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpd.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dhcpd.Tpo $(DEPDIR)/dhcpd.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../dhcpd.c' object='dhcpd.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dhcpd.obj `if test -f '../dhcpd.c'; then $(CYGPATH_W) '../dhcpd.c'; else $(CYGPATH_W) '$(srcdir)/../dhcpd.c'; fi` - -leasechain.o: ../leasechain.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT leasechain.o -MD -MP -MF $(DEPDIR)/leasechain.Tpo -c -o leasechain.o `test -f '../leasechain.c' || echo '$(srcdir)/'`../leasechain.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/leasechain.Tpo $(DEPDIR)/leasechain.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../leasechain.c' object='leasechain.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o leasechain.o `test -f '../leasechain.c' || echo '$(srcdir)/'`../leasechain.c - -leasechain.obj: ../leasechain.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT leasechain.obj -MD -MP -MF $(DEPDIR)/leasechain.Tpo -c -o leasechain.obj `if test -f '../leasechain.c'; then $(CYGPATH_W) '../leasechain.c'; else $(CYGPATH_W) '$(srcdir)/../leasechain.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/leasechain.Tpo $(DEPDIR)/leasechain.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../leasechain.c' object='leasechain.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o leasechain.obj `if test -f '../leasechain.c'; then $(CYGPATH_W) '../leasechain.c'; else $(CYGPATH_W) '$(srcdir)/../leasechain.c'; fi` - # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, @@ -957,6 +738,8 @@ clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f ../$(DEPDIR)/$(am__dirstamp) + -rm -f ../$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -967,7 +750,7 @@ clean: clean-recursive clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am distclean: distclean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ../$(DEPDIR) ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags @@ -1011,7 +794,7 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ../$(DEPDIR) ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic diff --git a/tests/Makefile.am b/tests/Makefile.am.in index 9c6c650e..25f490bb 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am.in @@ -28,6 +28,6 @@ EXTRA_DIST = failover/dhcp-1.cf failover/dhcp-2.cf failover/new-failover \ AM_CPPFLAGS = -I.. -check_LIBRARIES = libt_api.a -libt_api_a_SOURCES = t_api.c t_api_dhcp.c +check_LIBRARIES = libt_api.@A@ +libt_api_@A@_SOURCES = t_api.c t_api_dhcp.c diff --git a/util/Makefile.bind.in b/util/Makefile.bind.in index b98e2bee..31fcb467 100644 --- a/util/Makefile.bind.in +++ b/util/Makefile.bind.in @@ -24,7 +24,7 @@ exec_prefix = @exec_prefix@ bindconfig = --without-openssl --without-libxml2 --without-libjson \ --without-gssapi --disable-threads \ --includedir=@includedir@ --libdir=@libdir@ \ - @BINDIOMUX@ @BINDCONFIG@ --enable-full-report + @BINDLT@ @BINDIOMUX@ @BINDCONFIG@ --enable-full-report @BIND_ATF_FALSE@cleandirs = ./lib ./include @BIND_ATF_TRUE@cleandirs = ./lib ./include ./atf diff --git a/util/lt.pl b/util/lt.pl new file mode 100644 index 00000000..da493826 --- /dev/null +++ b/util/lt.pl @@ -0,0 +1,134 @@ +#!/usr/bin/perl +# +# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC") +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +# build configure.am with or without libtool stuff + +require 5.000; +use strict; + +# general arguments + +my @optionlist = ("with", "without", "verbose"); + +# usage + +my $usage = ("Usage: perl lt.pl [with|without] [verbose]\n"); + +# Parse arguments + +my $with = 0; +my $verbose = 0; + +foreach (@ARGV) { + if (/^with$/i) { + $with = 1; + } elsif (/^without$/i) { + $with = 0; + } elsif (/^verbose$/i) { + $verbose = 1; + } else { + die $usage; + } +} + +if ($verbose) { + if ($with) { + print STDERR "building the with libtool version\n"; + } else { + print STDERR "building the without libtool version\n"; + } +} + +# Perform + +my $line; +my $state = "top"; +my $directives = 0; +my $included = 0; +my $escaped = 0; + +foreach $line (<STDIN>) { + chomp $line; + if ($line =~ /^\@BEGIN WITH LIBTOOL$/) { + if ($state eq "top") { + $state = "with"; + } elsif ($state eq "with") { + die "got WITH begin in WITH context\n"; + } elsif ($state eq "without") { + die "got WITH begin in WITHOUT context\n"; + } + $directives += 1; + next; + } elsif ($line =~ /^\@BEGIN WITHOUT LIBTOOL$/) { + if ($state eq "top") { + $state = "without"; + } elsif ($state eq "with") { + die "got WITHOUT begin in WITH context\n"; + } elsif ($state eq "without") { + die "got WITHOUT begin in WITHOUT context\n"; + } + $directives += 1; + next; + } elsif ($line =~ /^\@END WITH LIBTOOL$/) { + if ($state eq "with") { + $state = "top"; + } elsif ($state eq "top") { + die "got WITH end outside context\n"; + } elsif ($state eq "without") { + die "got WITH end in WITHOUT context\n"; + } + $directives += 1; + next; + } elsif ($line =~ /^\@END WITHOUT LIBTOOL$/) { + if ($state eq "without") { + $state = "top"; + } elsif ($state eq "top") { + die "got WITHOUT end outside context\n"; + } elsif ($state eq "with") { + die "got WITHOUT end in WITH context\n"; + } + $directives += 1; + next; + } elsif ($line =~ /^@/) { + die "git unknown directive '$line'\n"; + } + + if ($state eq "with") { + if ($with) { + $included += 1; + } else { + $escaped += 1; + next; + } + } elsif ($state eq "without") { + if ($with) { + $escaped += 1; + next; + } else { + print $line. "\n"; + $included += 1; + } + } + print $line. "\n"; +} + +if ($verbose) { + print STDERR "directives: $directives\n"; + print STDERR "included: $included\n"; + print STDERR "escaped: $escaped\n"; +} + +exit 0; |