From 500b3045f08d4ed20ad15ef3b3a6e7cc4398b8ea Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 4 Oct 2008 16:05:11 +0000 Subject: [PATCH] initial librrd file added ... this will need more love since it does not pick up any -rpath settings git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1575 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/configure.ac | 1 + program/src/Makefile.am | 5 ++++- program/src/librrd.pc.in | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 program/src/librrd.pc.in diff --git a/program/configure.ac b/program/configure.ac index 2370f216..3dcc1550 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -768,6 +768,7 @@ AC_CONFIG_FILES([doc/Makefile]) AC_CONFIG_FILES([po/Makefile.in]) AC_CONFIG_FILES([src/Makefile]) AC_CONFIG_FILES([src/librrd.sym]) +AC_CONFIG_FILES([src/librrd.pc]) AC_CONFIG_FILES([bindings/Makefile]) AC_CONFIG_FILES([bindings/tcl/Makefile]) AC_CONFIG_FILES([bindings/tcl/ifOctets.tcl]) diff --git a/program/src/Makefile.am b/program/src/Makefile.am index 820acf6e..8a563f5a 100644 --- a/program/src/Makefile.am +++ b/program/src/Makefile.am @@ -109,8 +109,11 @@ rrdcached_DEPENDENCIES = librrd_th.la rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"' rrdcached_LDADD = librrd_th.la +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = librrd.pc + # strftime is here because we do not usually need it. unices have propper # iso date support -EXTRA_DIST= strftime.c strftime.h rrd_getopt.c rrd_getopt1.c rrd_getopt.h \ +EXTRA_DIST= librrd.pc.in strftime.c strftime.h rrd_getopt.c rrd_getopt1.c rrd_getopt.h \ win32comp.c rrd_thread_safe_nt.c get_ver.awk librrd.sym diff --git a/program/src/librrd.pc.in b/program/src/librrd.pc.in new file mode 100644 index 00000000..927a2b6f --- /dev/null +++ b/program/src/librrd.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: librrd +Description: Library for the RRDtool +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lrrd +Cflags: -I${includedir} -- 2.30.2