From 9ece08deeff008c16f320a45989b26630cc9b42a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 1 Feb 2009 11:46:03 +0100 Subject: [PATCH] libcollectdclient: Add a .pc file for pkg-config. --- configure.in | 6 +++++- src/libcollectdclient/Makefile.am | 1 + src/libcollectdclient/libcollectdclient.pc.in | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/libcollectdclient/libcollectdclient.pc.in diff --git a/configure.in b/configure.in index e54d87e0..83bb03c2 100644 --- a/configure.in +++ b/configure.in @@ -70,6 +70,10 @@ then CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" fi +# Where to install .pc files. +pkgconfigdir="${libdir}/pkgconfig" +AC_SUBST(pkgconfigdir) + # # Checks for header files. # @@ -3095,7 +3099,7 @@ AC_SUBST(LCC_VERSION_STRING) 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" diff --git a/src/libcollectdclient/Makefile.am b/src/libcollectdclient/Makefile.am index b8a8cbe1..60441452 100644 --- a/src/libcollectdclient/Makefile.am +++ b/src/libcollectdclient/Makefile.am @@ -6,6 +6,7 @@ endif 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 new file mode 100644 index 00000000..faade70c --- /dev/null +++ b/src/libcollectdclient/libcollectdclient.pc.in @@ -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} -- 2.30.2