]> www.fi.muni.cz Git - evince.git/blobdiff - shell/Makefile.am
Use GtkRecent instead of EggRecent when it's available. Fixes bug #349273
[evince.git] / shell / Makefile.am
index 4a6c5de5e7c44e0e411cb684c1fea1b12414e52e..6c1cdcf7d8bf8b035724ba3657b1bfe76f36c3e8 100644 (file)
@@ -2,7 +2,6 @@ INCLUDES=                                               \
        -DDATADIR=\"$(pkgdatadir)\"                     \
        -DGNOMEDATADIR=\"$(datadir)\"                   \
        -I$(top_srcdir)/lib                             \
-       -I$(top_srcdir)/cut-n-paste/recent-files/       \
        -I$(top_srcdir)/cut-n-paste/zoom-control/       \
        -I$(top_srcdir)/cut-n-paste/toolbar-editor/     \
        -I$(top_srcdir)/backend                         \
@@ -15,6 +14,12 @@ INCLUDES=                                            \
        $(GNOME_PRINT_CFLAGS)                           \
        $(GTK_PRINT_CFLAGS)
 
+if HAVE_GTK_RECENT
+INCLUDES +=
+else
+INCLUDES += -I$(top_srcdir)/cut-n-paste/recent-files/
+endif
+
 bin_PROGRAMS=evince
 
 evince_SOURCES=                                \
@@ -77,7 +82,6 @@ endif
 
 
 evince_LDADD=                                                          \
-       $(top_builddir)/cut-n-paste/recent-files/librecent.la           \
        $(top_builddir)/cut-n-paste/zoom-control/libephyzoom.la         \
        $(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la  \
        $(top_builddir)/properties/libevproperties.la                   \
@@ -85,6 +89,12 @@ evince_LDADD=                                                                \
        $(SHELL_LIBS)                                                   \
        $(GNOME_PRINT_LIBS)
 
+if HAVE_GTK_RECENT
+evince_LDADD +=
+else
+evince_LDADD += $(top_builddir)/cut-n-paste/recent-files/librecent.la
+endif
+
 if ENABLE_DJVU
 evince_LDADD +=        $(DJVU_LIBS)
 endif