438bed3508de5eb79bc696de5a67a67045b59f02
diff --git a/Makefile.am b/Makefile.am
index b2b43d3..9fa9710 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,6 +14,11 @@ if ENABLE_THUMBNAILER
 SUBDIRS += thumbnailer
 endif
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = \
+	evince-backend-$(EV_API_VERSION).pc \
+	evince-view-$(EV_API_VERSION).pc
+
 # Applications 
 
 intltool_extra = intltool-extract.in intltool-merge.in intltool-update.in
diff --git a/configure.ac b/configure.ac
index c2cf3fb..317f141 100644
--- a/configure.ac
+++ b/configure.ac
@@ -481,6 +481,9 @@ test/Makefile
 thumbnailer/Makefile
 ])
 
+AC_CONFIG_FILES(evince-backend-[]ev_api_version[].pc:evince-backend.pc.in)
+AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in)
+
 AC_OUTPUT
 
 echo "
diff --git a/evince-backend.pc.in b/evince-backend.pc.in
new file mode 100644
index 0000000..d08b28f
--- /dev/null
+++ b/evince-backend.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/evince/@EV_API_VERSION@
+
+Name: Evince Backend
+Description: GNOME document viewer backend library
+Version: @VERSION@
+Requires: glib-2.0 gthread-2.0 gio-2.0 gtk+-2.0
+Libs: -L${libdir}
+Cflags: -I${includedir}
diff --git a/evince-view.pc.in b/evince-view.pc.in
new file mode 100644
index 0000000..993ef7d
--- /dev/null
+++ b/evince-view.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/evince/@EV_API_VERSION@
+
+Name: Evince View
+Description: GNOME document viewer view library
+Version: @VERSION@
+Requires: glib-2.0 gthread-2.0 gio-2.0 gtk+-2.0
+Libs: -L${libdir}
+Cflags: -I${includedir}
