]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add GSS libraries when needed
authorAki Tuomi <cmouse@cmouse.fi>
Thu, 21 May 2015 19:15:01 +0000 (22:15 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 28 May 2015 14:42:17 +0000 (17:42 +0300)
modules/remotebackend/Makefile.am
pdns/Makefile.am

index e161957ac1565eaad7e01a75c683035ef892bcd8..a73a58dd6b02970c7ca7e00f1d32601da5472597 100644 (file)
@@ -118,6 +118,7 @@ libtestremotebackend_la_SOURCES = \
        ../../pdns/nameserver.cc \
        ../../pdns/rcpgenerator.cc \
        ../../pdns/unix_utility.cc \
+       ../../pdns/gss_context.cc ../../pdns/gss_context.hh \
        httpconnector.cc \
        pipeconnector.cc \
        unixconnector.cc \
@@ -154,6 +155,13 @@ libtestremotebackend_la_CPPFLAGS += \
        $(P11KIT1_CFLAGS)
 endif
 
+if GSS_TSIG
+libtestremotebackend_la_LIBADD += \
+       $(GSS_LIBS)
+libtestremotebackend_la_CPPFLAGS+= \
+       $(GSS_CFLAGS)
+endif
+
 remotebackend_http_test_SOURCES = \
        test-remotebackend.cc \
        test-remotebackend-http.cc \
index 84ec5431892276728728d44685c34b030e70eba1..276e2c63f820191c6a257f688c5a44a72a656e70 100644 (file)
@@ -35,6 +35,10 @@ if LUA
 AM_CPPFLAGS +=$(LUA_CFLAGS)
 endif
 
+if GSS_TSIG
+AM_CPPFLAGS +=$(GSS_CFLAGS)
+endif
+
 EXTRA_DIST = \
        dnslabeltext.rl \
        dnslabeltext.cc \
@@ -151,6 +155,7 @@ pdns_server_SOURCES = \
        dynlistener.cc dynlistener.hh \
        dynmessenger.hh \
        ednssubnet.cc ednssubnet.hh \
+       gss_context.cc gss_context.hh \
        iputils.cc iputils.hh \
        json.cc json.hh \
        lock.hh \
@@ -243,6 +248,10 @@ if LUA
 pdns_server_LDADD += $(LUA_LIBS)
 endif
 
+if GSS_TSIG
+pdns_server_LDADD += $(GSS_LIBS)
+endif
+
 pdnssec_SOURCES = \
        arguments.cc \
        backends/gsql/gsqlbackend.cc backends/gsql/gsqlbackend.hh \
@@ -334,6 +343,10 @@ pdnssec_SOURCES +=  pkcs11signers.cc pkcs11signers.hh
 pdnssec_LDADD += $(P11KIT1_LIBS)
 endif
 
+if GSS_TSIG
+pdnssec_LDADD += $(GSS_LIBS)
+endif
+
 zone2sql_SOURCES = \
        arguments.cc \
        base32.cc \
@@ -538,6 +551,10 @@ saxfr_SOURCES += pkcs11signers.cc pkcs11signers.hh
 saxfr_LDADD += $(P11KIT1_LIBS)
 endif
 
+if GSS_TSIG
+saxfr_LDADD += $(GSS_LIBS)
+endif
+
 dnstcpbench_SOURCES = \
        base32.cc \
        base64.cc base64.hh \
@@ -623,6 +640,10 @@ nsec3dig_SOURCES += pkcs11signers.cc pkcs11signers.hh
 nsec3dig_LDADD += $(P11KIT1_LIBS)
 endif
 
+if GSS_TSIG
+nsec3dig_LDADD += $(GSS_LIBS)
+endif
+
 toysdig_SOURCES = \
        base32.cc \
        base64.cc base64.hh \
@@ -659,6 +680,7 @@ tsig_tests_SOURCES = \
        dnsrecords.cc \
        dnssecinfra.cc \
        dnswriter.cc dnswriter.hh \
+       gss_context.cc gss_context.hh \
        logger.cc \
        misc.cc misc.hh \
        nsecrecords.cc \
@@ -679,6 +701,9 @@ tsig_tests_SOURCES += pkcs11signers.cc pkcs11signers.hh
 tsig_tests_LDADD += $(P11KIT1_LIBS)
 endif
 
+if GSS_TSIG
+tsig_tests_LDADD += $(GSS_LIBS)
+endif
 speedtest_SOURCES = \
        base32.cc \
        base64.cc base64.hh \