Commit a042fbdc authored by Jelte Jansen's avatar Jelte Jansen
Browse files

install auth.spec and use the right one


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@697 e5f2f494-b856-4b98-b285-d166d9295462
parent 2e1dd5c3
......@@ -8,3 +8,7 @@ b10_auth_LDADD = $(top_builddir)/src/lib/dns/cpp/.libs/libdns.a
b10_auth_LDADD += $(top_builddir)/src/lib/auth/cpp/.libs/libauth.a
b10_auth_LDADD += $(top_builddir)/src/lib/config/cpp/libclient.a
b10_auth_LDADD += $(top_builddir)/src/lib/cc/cpp/libcc.a
b10_authdir = $(DESTDIR)$(pkgdatadir)
b10_auth_DATA = auth.spec
#define AUTH_SPECFILE_LOCATION "@abs_top_srcdir@/src/bin/auth/auth.spec"
#define AUTH_SPECFILE_LOCATION "@prefix@/share/bind/auth.spec"
......@@ -100,7 +100,13 @@ main(int argc, char* argv[]) {
// initialize command channel
try {
CommandSession cs = CommandSession(AUTH_SPECFILE_LOCATION,
std::string specfile;
if (getenv("B10_FROM_SOURCE")) {
specfile = std::string(getenv("B10_FROM_SOURCE")) + "/src/bin/auth/auth.spec";
} else {
specfile = std::string(AUTH_SPECFILE_LOCATION);
}
CommandSession cs = CommandSession(specfile,
my_config_handler,
my_command_handler);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment