summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--configure.in2
-rw-r--r--librcc.pc.in11
3 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index d5b909f..e5bd58a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,7 @@
SUBDIRS = src engines external ui
EXTRA_DIST = librcd.spec
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = librcc.pc
+
ACLOCAL_AMFLAGS = -I m4
diff --git a/configure.in b/configure.in
index 4baa8a3..17f504b 100644
--- a/configure.in
+++ b/configure.in
@@ -392,7 +392,7 @@ AC_C_CONST
dnl Checks for library functions.
AC_CHECK_FUNCS(strcasecmp strncasecmp strdup strnlen flock lockf nanosleep usleep fsync ftruncate)
-AC_OUTPUT(src/Makefile engines/Makefile external/Makefile ui/Makefile examples/Makefile Makefile librcc.spec)
+AC_OUTPUT(src/Makefile engines/Makefile external/Makefile ui/Makefile examples/Makefile Makefile librcc.spec librcc.pc)
dnl ***
dnl *** Data directory
diff --git a/librcc.pc.in b/librcc.pc.in
new file mode 100644
index 0000000..eb100a1
--- /dev/null
+++ b/librcc.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: librcc
+Description: Encoding Conversion Library
+Requires: libxml-2.0 librcd enca
+Version: @VERSION@
+Libs: -L${libdir} -lrcc
+Cflags: -I${includedir}