From 7b98ffd345f13d96896f54c5c054d087fc21d856 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Sat, 2 Feb 2019 17:47:48 +0300 Subject: build: do not generate mech-list.h if p11-kit is not available Compiling GnuTLS with no p11-kit installed will result in a serie of warnings during build time because mech-list.h will be generated even if pkcs11 tool compilation is disabled. Move mech-list.h generation to happen only if pkcs11 is enabled, thus removing these warnings. Signed-off-by: Dmitry Eremin-Solenikov --- src/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index eb3c578648..0374924c53 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -56,7 +56,7 @@ ARGS_STAMPS = \ systemkey-args.stamp srptool-args.stamp ocsptool-args.stamp p11tool-args.stamp \ danetool-args.stamp serv-args.stamp psktool-args.stamp -BUILT_SOURCES = $(ARGS_BUILT) mech-list.h +BUILT_SOURCES = $(ARGS_BUILT) DISTCLEANFILES = $(BUILT_SOURCES) $(ARGS_STAMPS) @@ -226,8 +226,9 @@ libcmd_danetool_la_LIBADD += $(INET_PTON_LIB) $(LIB_CLOCK_GETTIME) # p11 tool if ENABLE_PKCS11 +BUILT_SOURCES += mech-list.h p11tool_SOURCES = p11tool-args.def p11tool.c pkcs11.c certtool-common.c \ - certtool-extras.c p11tool.h common.c + certtool-extras.c p11tool.h common.c mech-list.h p11tool_LDADD = ../lib/libgnutls.la p11tool_LDADD += libcmd-p11tool.la ../gl/libgnu.la gl/libgnu_gpl.la p11tool_LDADD += $(COMMON_LIBS) -- cgit v1.2.1