Install a pkg-config file. master
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 28 Dec 2009 21:42:17 +0000 (22:42 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 28 Dec 2009 21:42:17 +0000 (22:42 +0100)
configure.ac
lib/Makefile.am
lib/fides.pc.in [new file with mode: 0644]

index 415538b..3135d47 100644 (file)
@@ -13,9 +13,10 @@ AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 AC_PROG_LIBTOOL
 
+PKG_PROG_PKG_CONFIG
 PKG_CHECK_MODULES(BOTAN, botan-1.8 >= 1.8.0)
 AC_SUBST(BOTAN_CFLAGS)
 AC_SUBST(BOTAN_LIBS)
 
-AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile])
+AC_CONFIG_FILES([Makefile lib/Makefile lib/fides.pc src/Makefile])
 AC_OUTPUT
index 127f866..c81d37b 100644 (file)
@@ -2,3 +2,8 @@ lib_LTLIBRARIES = libfides.la
 libfides_la_SOURCES = fides.cc certificate.cc publickey.cc privatekey.cc utility.cc
 include_HEADERS = fides.h certificate.h publickey.h privatekey.h utility.h
 libfides_la_LIBADD = $(BOTAN_LIBS)
+
+EXTRA_DIST = fides.pc.in
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = fides.pc
+
diff --git a/lib/fides.pc.in b/lib/fides.pc.in
new file mode 100644 (file)
index 0000000..8312db1
--- /dev/null
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: fides
+Description: A lightweight cryptographic authorisation framework
+URL: http://www.tinc-vpn.org/
+Requires: botan-1.8
+Version: @VERSION@
+Libs: -L${libdir} -lfides
+Cflags: -I${includedir}