--- evince-2.21.1/properties/Makefile.am.orig	2008-01-11 16:33:28.480039760 +0000
+++ evince-2.21.1/properties/Makefile.am	2008-01-11 16:33:44.053754650 +0000
@@ -21,7 +21,7 @@
 
 nautilus_LTLIBRARIES = $(EVINCE_PROPERTIES_PAGE)
 
-nautilusdir = $(libdir)/nautilus/extensions-1.0/
+nautilusdir = $(NAUTILUSDIR)
 libevince_properties_page_la_CFLAGS = -I$(top_srcdir)
 libevince_properties_page_la_SOURCES = 	\
 	ev-properties-main.c
--- evince-2.21.1/configure.ac.orig	2008-01-11 16:32:19.270612820 +0000
+++ evince-2.21.1/configure.ac	2008-01-11 16:33:05.730218657 +0000
@@ -189,6 +189,8 @@
 AC_SUBST(NAUTILUS_LIBS)
 if test x$HAVE_NAUTILUS = "xyes"; then
 	AC_DEFINE(HAVE_NAUTILUS, 1, [defined if you build the nautilus plugin])
+	NAUTILUSDIR=`pkg-config --variable=extensiondir libnautilus-extension`
+	AC_SUBST(NAUTILUSDIR)
 fi
 AM_CONDITIONAL(HAVE_NAUTILUS, test x$HAVE_NAUTILUS = "xyes")
 
