~ubuntu-branches/ubuntu/trusty/evince/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.ac

Tags: upstream-0.5.1
ImportĀ upstreamĀ versionĀ 0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
 
3
3
AC_PREREQ(2.57)
4
 
AC_INIT(evince, 0.5.0)
 
4
AC_INIT(evince, 0.5.1)
5
5
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
6
6
 
7
7
AM_CONFIG_HEADER(config.h)
48
48
GTK_REQUIRED=2.6.0
49
49
LIBGNOMEUI_REQUIRED=2.6.0
50
50
KEYRING_REQUIRED=0.4.0
 
51
LIBGNOMEPRINTUI_REQUIRED=2.5.1
51
52
 
52
53
PKG_CHECK_MODULES(LIB, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED)
53
54
PKG_CHECK_MODULES(BACKEND, gtk+-2.0 >= $GTK_REQUIRED gnome-vfs-2.0)
54
55
PKG_CHECK_MODULES(FRONTEND_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 poppler-glib >= $POPPLER_REQUIRED)
55
56
PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED)
56
 
PKG_CHECK_MODULES(SHELL_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libgnomeprint-2.2 >= 2.5.1 libgnomeprintui-2.2 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED gnome-keyring-1 >= $KEYRING_REQUIRED)
 
57
PKG_CHECK_MODULES(SHELL_CORE, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 libglade-2.0 gconf-2.0 poppler-glib >= $POPPLER_REQUIRED gnome-keyring-1 >= $KEYRING_REQUIRED)
57
58
 
58
59
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`  
59
60
AC_SUBST(GLIB_GENMARSHAL)
60
61
 
 
62
 
 
63
dnl ========= Check for libgnomeprintui
 
64
AC_ARG_ENABLE(gnome-print,
 
65
        [AC_HELP_STRING([--disable-gnome-print], [Compile without print support])],
 
66
        enable_gnome_print="$enableval",
 
67
        enable_gnome_print=yes)
 
68
 
 
69
if test x$enable_gnome_print = xyes; then
 
70
        PKG_CHECK_MODULES(GNOME_PRINT, 
 
71
                libgnomeprintui-2.2 >= $LIBGNOMEPRINTUI_REQUIRED,
 
72
                enable_gnome_print=yes, enable_gnome_print=no)
 
73
fi
 
74
 
 
75
AC_SUBST(GNOME_PRINT_CFLAGS)
 
76
AC_SUBST(GNOME_PRINT_LIBS)
 
77
 
 
78
if test x$enable_gnome_print = xyes; then
 
79
        AC_DEFINE([WITH_GNOME_PRINT],[1],[Enable Print Support.])
 
80
fi 
 
81
 
 
82
AM_CONDITIONAL(WITH_GNOME_PRINT, test x$enable_gnome_print = xyes)
 
83
 
 
84
dnl ========= Check for DBUS
61
85
PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_GLIB_REQUIRED],
62
86
        [enable_dbus=yes],[enable_dbus=no])
63
87
AC_SUBST([DBUS_CFLAGS])
121
145
AC_CHECK_FUNCS(gtk_icon_view_get_visible_range)
122
146
AC_CHECK_FUNCS(gtk_window_present_with_time)
123
147
AC_CHECK_FUNCS(g_file_set_contents)
 
148
AC_CHECK_FUNCS(gtk_file_chooser_set_do_overwrite_confirmation)
124
149
LIBS=$evince_save_LIBS
125
150
 
126
151
dnl GConf configuration
147
172
AM_CONDITIONAL(ENABLE_PS, test x$enable_ps = xyes)
148
173
 
149
174
if test x$enable_ps = xyes; then
150
 
AC_ARG_WITH(gs,
151
 
            [AC_HELP_STRING([--with-gs=dir], [Directory Where GhostScript package is installed.])])
152
 
 
153
 
if test "x$with_gs" = "x"; then
154
 
        AC_PATH_PROG(GS_PROG, gs)
155
 
        if test -z "$GS_PROG"; then
156
 
                AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run evince)
157
 
        fi
158
 
else
159
 
        GS_PROG=$with_gs
160
 
fi
161
 
 
162
 
AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.])
163
175
 
164
176
dnl check for GS version
165
177
AC_MSG_CHECKING(for Ghostscript version...)
212
224
    if test "x$enable_djvu" = "xyes"; then
213
225
        AC_CHECK_LIB([djvulibre],ddjvu_context_create,enable_djvu=yes,enable_djvu=no,"-lpthread")
214
226
        AC_CHECK_LIB([djvulibre],ddjvu_document_get_pageinfo,enable_djvu=yes,enable_djvu=no,"-lpthread")
 
227
        AC_CHECK_LIB([djvulibre],ddjvu_document_get_pagetext,enable_djvu=yes,enable_djvu=no,"-lpthread")
215
228
    fi
216
229
 
217
230
    if test "x$enable_djvu" = "xyes"; then
219
232
    else
220
233
        AC_MSG_WARN([   
221
234
** Djvu support is disabled since a recent version of the djvulibre 
222
 
** library was not found. You need at least djvulibre-3.5.15 which 
 
235
** library was not found. You need at least djvulibre-3.5.16 which 
223
236
** can be found on http://djvulibre.djvuzone.org 
224
237
])
225
238
    fi 
296
309
 
297
310
EVINCE_MIME_TYPES="application/pdf"
298
311
 
299
 
if test "x$disable_ps" = "xno" ; then
 
312
if test "x$enable_ps" = "xyes" ; then
300
313
        EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/postscript;application/x-gzpostscript"
301
314
fi
302
315
if test "x$enable_dvi" = "xyes"; then
339
352
])
340
353
 
341
354
AC_OUTPUT
 
355
 
 
356
echo "
 
357
Configure summary:
 
358
        Print Support......:  $enable_gnome_print
 
359
        DBUS Support.......:  $enable_dbus
 
360
        Nautilus Plugin....:  $HAVE_NAUTILUS
 
361
 
 
362
        PostScript Backend.:  $enable_ps
 
363
        TIFF Backend.......:  $enable_tiff
 
364
        DJVU Backend.......:  $enable_djvu
 
365
        DVI Backend........:  $enable_dvi
 
366
        Pixbuf Backend.....:  $enable_pixbuf
 
367
        Comics Backend.....:  $enable_comics
 
368
"