--- a/champlain-memphis-uninstalled.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=
-exec_prefix=
-abs_top_srcdir=@abs_top_srcdir@
-abs_top_builddir=@abs_top_builddir@
-
-Name: libchamplain-memphis (uninstalled copy)
-Description: libmemphis support for libchamplain
-Version: @VERSION@
-Libs: ${abs_top_builddir}/champlain/libchamplain-@CHAMPLAIN_API_VERSION@.la
-Cflags: -I${abs_top_srcdir} -I${abs_top_builddir}
-Requires: champlain-@CHAMPLAIN_API_VERSION@ memphis-0.2
--- a/champlain-memphis.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: libchamplain-memphis
-Description: libmemphis support for libchamplain
-Version: @VERSION@
-Libs: -L${libdir} -lchamplain-@CHAMPLAIN_API_VERSION@
-Cflags: -I${includedir}/libchamplain-@CHAMPLAIN_API_VERSION@
-Requires: champlain-@CHAMPLAIN_API_VERSION@ memphis-0.2
--- a/champlain.pc.in
+++ b/champlain.pc.in
@@ -8,4 +8,4 @@
 Version: @VERSION@
 Libs: -L${libdir} -lchamplain-@CHAMPLAIN_API_VERSION@
 Cflags: -I${includedir}/libchamplain-@CHAMPLAIN_API_VERSION@
-Requires: gobject-2.0 glib-2.0 gdk-2.0 gio-2.0 cairo clutter-1.0 sqlite3 @SOUP_DEP@
+Requires: gobject-2.0 glib-2.0 gdk-2.0 gio-2.0 cairo clutter-1.0 sqlite3 @SOUP_DEP@ @MEMPHIS_DEP@
--- a/configure.ac
+++ b/configure.ac
@@ -150,8 +150,13 @@
   PKG_CHECK_MODULES(MEMPHIS, [memphis-0.2 >= 0.2.1])
 fi
 
+if test "x$enable_memphis" = "xyes"; then
+  MEMPHIS_DEP="memphis-0.2"
+fi
+
 AC_SUBST(MEMPHIS_CFLAGS)
 AC_SUBST(MEMPHIS_LIBS)
+AC_SUBST(MEMPHIS_DEP)
 
 AM_CONDITIONAL(ENABLE_MEMPHIS, test "x$enable_memphis" = "xyes")
 
