From a55a82212421c1f1ce09762cc38bbfcbf177379b Mon Sep 17 00:00:00 2001
From: "Suren A. Chilingaryan" <csa@dside.dyndns.org>
Date: Sun, 11 Nov 2012 08:44:21 +0100
Subject: pkgconfig

---
 .bzrignore   |  1 +
 Makefile.am  |  4 ++++
 configure.in |  2 +-
 librcd.pc.in | 11 +++++++++++
 4 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 librcd.pc.in

diff --git a/.bzrignore b/.bzrignore
index 6113eab..ebe7c50 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -27,3 +27,4 @@ example
 CMakeFiles
 CMakeCache.txt
 cmake_install.cmake
+librcd.pc
diff --git a/Makefile.am b/Makefile.am
index b3b05b2..16a63fa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,7 @@
 SUBDIRS = src
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = librcd.pc
+
+
 EXTRA_DIST = examples statgen librcd.spec
\ No newline at end of file
diff --git a/configure.in b/configure.in
index 0940012..9e51720 100644
--- a/configure.in
+++ b/configure.in
@@ -45,4 +45,4 @@ AC_C_CONST
 
 dnl Checks for library functions.
 
-AC_OUTPUT(src/Makefile examples/Makefile statgen/Makefile Makefile librcd.spec)
+AC_OUTPUT(src/Makefile examples/Makefile statgen/Makefile Makefile librcd.spec librcd.pc)
diff --git a/librcd.pc.in b/librcd.pc.in
new file mode 100644
index 0000000..0bcd5ad
--- /dev/null
+++ b/librcd.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: librcd
+Description: Encoding Detection Library
+Requires: 
+Version: @VERSION@
+Libs: -L${libdir} -lrcd
+Cflags: -I${includedir}
-- 
cgit v1.2.3