X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=configure.ac;h=106a8d1f8276f7b554f45e8ebeef793632625974;hb=6b4c0ba999f0c149a1095efc95d8901ed324aa4e;hp=8532cb3a6d7488a20e15d4518c35294f3752b2e4;hpb=5e33cba1571535c918759f7fe2177ab9eb5b971a;p=evince.git diff --git a/configure.ac b/configure.ac index 8532cb3a..106a8d1f 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,11 @@ else fi AC_SUBST(EVINCE_DISABLE_DEPRECATED) +evince_save_LIBS=$LIBS +LIBS="$LIBS $GTK_LIBS" +AC_CHECK_FUNCS(gtk_icon_view_get_visible_range) +LIBS=$evince_save_LIBS + AM_GCONF_SOURCE_2 AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no]) @@ -131,14 +136,24 @@ AC_ARG_ENABLE(djvu, if test "x$enable_djvu" = "xyes"; then AC_CHECK_HEADERS([libdjvu/ddjvuapi.h],enable_djvu=yes,enable_djvu=no,) + if test "x$enable_djvu" = "xyes"; then AC_CHECK_LIB([djvulibre],ddjvu_context_create,enable_djvu=yes,enable_djvu=no,"-lpthread") + AC_CHECK_LIB([djvulibre],ddjvu_document_get_pageinfo,enable_djvu=yes,enable_djvu=no,"-lpthread") fi if test "x$enable_djvu" = "xyes"; then AC_DEFINE([ENABLE_DJVU], [1], [Enable djvu viewer support.]) else - AC_MSG_WARN("Djvu support is disabled since djvulibre library version 3.5.14 or newer is not found") + AC_MSG_WARN([ +** Djvu support is disabled since recent version of djvulibre +** library was not found. To get proper djvu support you need to +** install development version of djvulibre. You can get it from +** anonymous CVS server on djvulibre.sf.net. Just use something +** like: + +** cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/djvu co djvulibre-3.5 +]) fi fi