summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-06-01 07:54:46 -0400
committerSteve Dickson <steved@redhat.com>2015-06-01 08:11:35 -0400
commitbe5ce4056a77cb1f9bba6a050c12ce8fd08eac9b (patch)
tree22c40ac928d9b40a88a5216d16af36b65d31ce27
parent2e45e4f7f14a157a42d0cb1bc4bf984c906169ba (diff)
downloadti-rpc-be5ce4056a77cb1f9bba6a050c12ce8fd08eac9b.tar.gz
Conditionally install GSS man pages and headers
If --disable-gssapi is specified, the rpc_gss API is not built. There's no purpose in installing rpc_gss-related man pages or headers in that case. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--Makefile.am8
-rw-r--r--man/Makefile.am5
2 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 2bf725c..59d0d7f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,7 +17,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
tirpc/rpc/svc_auth.h \
tirpc/rpc/rpc_msg.h \
tirpc/rpc/rpc.h \
- tirpc/rpc/rpcsec_gss.h \
tirpc/rpc/rpcent.h \
tirpc/rpc/rpc_com.h \
tirpc/rpc/rpcb_prot.x \
@@ -33,8 +32,13 @@ nobase_include_HEADERS = tirpc/netconfig.h \
tirpc/rpc/clnt.h \
tirpc/rpc/auth_unix.h \
tirpc/rpc/auth_kerb.h \
- tirpc/rpc/auth.h \
+ tirpc/rpc/auth.h
+
+if GSS
+nobase_include_HEADERS += \
+ tirpc/rpc/rpcsec_gss.h \
tirpc/rpc/auth_gss.h
+endif
if AUTHDES
nobase_include_HEADERS += \
diff --git a/man/Makefile.am b/man/Makefile.am
index cf510e7..fa43bb4 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -19,7 +19,10 @@ RPCSEC_MANS = rpcsec_gss.3t rpc_gss_get_error.3t \
dist_man5_MANS = netconfig.5
dist_man3_MANS = $(LOOKUP_MANS) $(NETCONFIG_MANS) \
$(BIND_MANS) $(GENERIC_MANS) $(COMPAT_MANS) \
- $(CLIENT_MANS) $(SERVER_MANS) $(RPCSEC_MANS)
+ $(CLIENT_MANS) $(SERVER_MANS)
+if GSS
+dist_man3_MANS += $(RPCSEC_MANS)
+endif
EXTRA_DIST = publickey.3t publickey.5 rpc.5