[strongSwan-dev] [PATCH] libcharon/vici: install libvici.h header

Matt Weber matthew.weber at rockwellcollins.com
Thu Sep 20 17:09:49 CEST 2018


From: Paresh Chaudhary <paresh.chaudhary at rockwellcollins.com>

Install "libvici.h" if --with-dev-headers is configured.
Strongswan currently installs other development headers using
this method.

The libvici plugin provides a stable low-level C API to
exchange messages using the VICI protocol. This allows a user
to write standalone applications based on 'libvici' functions,
'libvici.h' header file is required to link all functions at
compile time.

Original discussion and commit:
https://wiki.strongswan.org/projects/strongswan/repository/revisions/01c2b62362df88a03c53b748bb4e88631410f326

Signed-off-by: Paresh Chaudhary <paresh.chaudhary at rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com>
---
 src/libcharon/plugins/vici/Makefile.am | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/libcharon/plugins/vici/Makefile.am b/src/libcharon/plugins/vici/Makefile.am
index e8bcdba..6b11ff1 100644
--- a/src/libcharon/plugins/vici/Makefile.am
+++ b/src/libcharon/plugins/vici/Makefile.am
@@ -42,7 +42,12 @@ libvici_la_SOURCES = \
 	vici_message.c vici_message.h \
 	vici_builder.c vici_builder.h \
 	vici_cert_info.h vici_cert_info.c \
-	libvici.c libvici.h
+	libvici.c
+
+if USE_DEV_HEADERS
+vici_includedir = ${dev_headers}
+nobase_vici_include_HEADERS = libvici.h
+endif
 
 libvici_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
 
-- 
1.9.1



More information about the Dev mailing list