summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bzrignore1
-rw-r--r--Makefile.am4
-rw-r--r--configure.in2
-rw-r--r--librcd.pc.in11
4 files changed, 17 insertions, 1 deletions
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}