summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42f7cda)
raw | patch | inline | side by side (parent: 42f7cda)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 1 Feb 2009 10:46:03 +0000 (11:46 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 1 Feb 2009 10:46:03 +0000 (11:46 +0100) |
configure.in | patch | blob | history | |
src/libcollectdclient/Makefile.am | patch | blob | history | |
src/libcollectdclient/libcollectdclient.pc.in | [new file with mode: 0644] | patch | blob |
diff --git a/configure.in b/configure.in
index e54d87e01da36863093015e473013be4a3d40674..83bb03c2af24203ed28557b70e97fce7132da639 100644 (file)
--- a/configure.in
+++ b/configure.in
CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
fi
+# Where to install .pc files.
+pkgconfigdir="${libdir}/pkgconfig"
+AC_SUBST(pkgconfigdir)
+
#
# Checks for header files.
#
AC_CONFIG_FILES(src/libcollectdclient/lcc_features.h)
-AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libiptc/Makefile src/libcollectdclient/Makefile src/liboconfig/Makefile src/liboping/Makefile bindings/Makefile)
+AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libiptc/Makefile src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile src/liboping/Makefile bindings/Makefile)
if test "x$with_librrd" = "xyes" \
&& test "x$librrd_threadsafe" != "xyes"
index b8a8cbe1e4eee8789e65682532e97ddd68602984..60441452474484dce73192406d80347bbb468f68 100644 (file)
pkginclude_HEADERS = client.h lcc_features.h
lib_LTLIBRARIES = libcollectdclient.la
+nodist_pkgconfig_DATA = libcollectdclient.pc
BUILT_SOURCES = lcc_features.h
diff --git a/src/libcollectdclient/libcollectdclient.pc.in b/src/libcollectdclient/libcollectdclient.pc.in
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libcollectdclient
+Description: Client library for the unixsock plugin of collectd.
+Version: @LCC_VERSION_STRING@
+URL: http://collectd.org/
+Libs: -L${libdir} -lcollectdclient
+Cflags: -I${includedir}