~noskcaj/ubuntu/vivid/brasero/3.12

« back to all changes in this revision

Viewing changes to .pc/012_appindicator.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Matthew Fischer
  • Date: 2013-05-26 13:21:27 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20130526132127-08owtdhxzr4s6hms
Tags: 3.8.0-0ubuntu1
* New upstream release (LP: #1184409)
  - Documentation fixes
  - Translation updates
  - Add a question mark to a question
  - Support notification filtering
  - Remove nonexisting options from the man page
  - Fix while loop in `brasero_libisofs_write_image_to_fd_thread
* Refreshed patches
* 99_fix-mp3-projects.patch: Removed, already applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT([brasero],[3.6.1])
3
 
AC_CONFIG_SRCDIR(src/main.c)
4
 
 
5
 
BRASERO_MAJOR_VERSION=3
6
 
BRASERO_MINOR_VERSION=6
7
 
BRASERO_SUB=0
8
 
BRASERO_VERSION=$BRASERO_MAJOR_VERSION.$BRASERO_MINOR_VERSION.$BRASERO_SUB
9
 
 
10
 
AC_SUBST(BRASERO_MAJOR_VERSION)
11
 
AC_SUBST(BRASERO_MINOR_VERSION)
12
 
AC_SUBST(BRASERO_SUB)
13
 
AC_SUBST(BRASERO_VERSION)
14
 
 
15
 
dnl Before making a release, the BURN_LT_VERSION string should be modified.
16
 
dnl The string is of the form C:R:A.
17
 
dnl - If interfaces have been changed or added, but binary compatibility has
18
 
dnl   been preserved, change to C+1:0:A+1
19
 
dnl - If binary compatibility has been broken (eg removed or changed interfaces)
20
 
dnl   change to C+1:0:0
21
 
dnl - If the interface is the same as the previous version, change to C:R+1:A
22
 
 
23
 
LT_CURRENT=3
24
 
LT_REVISION=3
25
 
LT_AGE=2
26
 
 
27
 
AC_SUBST(LT_CURRENT)
28
 
AC_SUBST(LT_REVISION)
29
 
AC_SUBST(LT_AGE)
30
 
 
31
 
LIBBRASERO_LT_VERSION=$LT_CURRENT:$LT_REVISION:$LT_AGE
32
 
AC_SUBST(LIBBRASERO_LT_VERSION) 
33
 
 
34
 
AC_DEFINE_UNQUOTED(BRASERO_MAJOR_VERSION, $BRASERO_MAJOR_VERSION, [major version])
35
 
AC_DEFINE_UNQUOTED(BRASERO_MINOR_VERSION, $BRASERO_MINOR_VERSION, [minor version])
36
 
AC_DEFINE_UNQUOTED(BRASERO_SUB, $BRASERO_SUB, [sub version])
37
 
AC_DEFINE_UNQUOTED(BRASERO_VERSION, $BRASERO_VERSION, [version])
38
 
 
39
 
dnl this is what it used to be
40
 
dnl AM_INIT_AUTOMAKE(brasero, $BRASERO_VERSION)
41
 
 
42
 
AM_INIT_AUTOMAKE([foreign])
43
 
 
44
 
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
45
 
 
46
 
AC_CONFIG_HEADERS([config.h])
47
 
 
48
 
AC_DISABLE_STATIC
49
 
LT_INIT
50
 
 
51
 
AM_MAINTAINER_MODE([enable])
52
 
 
53
 
dnl **************** Support GSettings *************************
54
 
GLIB_GSETTINGS
55
 
 
56
 
dnl **************** documentation *****************************
57
 
YELP_HELP_INIT
58
 
GTK_DOC_CHECK([1.12])
59
 
 
60
 
dnl ***************** GNOME MACROS *****************************
61
 
 
62
 
dnl This allows to set warnings
63
 
GNOME_COMPILE_WARNINGS([maximum])
64
 
GNOME_CXX_WARNINGS
65
 
 
66
 
dnl This could be use one day not to compile all debugging message
67
 
dnl GNOME_DEBUG_CHECK
68
 
 
69
 
GNOME_MAINTAINER_MODE_DEFINES
70
 
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -DGSEAL_ENABLE"
71
 
AC_SUBST(DISABLE_DEPRECATED)
72
 
 
73
 
dnl ***************** GENERAL **********************************
74
 
 
75
 
dnl ** reminder: the following set CFLAGS to -O2 -g if empty
76
 
AC_PROG_CC
77
 
AC_HEADER_STDC
78
 
 
79
 
dnl Set PACKAGE_DATA_DIR in config.h.
80
 
if test "x${datadir}" = 'x${prefix}/share'; then
81
 
  if test "x${prefix}" = "xNONE"; then
82
 
    AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/", [Define the PACKAGE_DATA_DIR.])
83
 
  else
84
 
    AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/", [Define the PACKAGE_DATA_DIR.])
85
 
  fi
86
 
  elif test "x${datadir}" = 'x${datarootdir}'; then
87
 
  if test "x${datarootdir}" = 'x${prefix}/share'; then
88
 
        if test "x${prefix}" = "xNONE"; then
89
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${ac_default_prefix}/share/", [Define the PACKAGE_DATA_DIR.])
90
 
        else
91
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${prefix}/share/", [Define the PACKAGE_DATA_DIR.])
92
 
        fi
93
 
  else
94
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datarootdir}/", [Define the PACKAGE_DATA_DIR.])
95
 
        fi
96
 
  else
97
 
        AC_DEFINE_UNQUOTED([PACKAGE_DATA_DIR], "${datadir}/", [Define the PACKAGE_DATA_DIR.])
98
 
fi
99
 
 
100
 
dnl ***************** SCSI related *****************************
101
 
AC_SUBST(BRASERO_SCSI_LIBS)
102
 
AC_CHECK_HEADERS([camlib.h],[has_cam="yes"],[has_cam="no"])
103
 
 
104
 
dnl ***************** check for linux sg interface *************
105
 
AC_CHECK_TYPES([sg_io_hdr_t],[has_sg="yes"],[has_sg="no"],
106
 
[#include <sys/types.h>
107
 
 #include <scsi/sg.h>])
108
 
 
109
 
dnl ***************** check for netbsd *************************
110
 
AC_CHECK_TYPES([scsireq_t],[has_scsiio="yes"],[has_scsiio="no"],
111
 
[#include <sys/types.h>
112
 
 #include <sys/scsiio.h>])
113
 
 
114
 
dnl ***************** check for solaris uscsi interface ********
115
 
AC_CHECK_TYPES([struct uscsi_cmd],[has_uscsi="yes"],[has_uscsi="no"],
116
 
[#include <sys/types.h>
117
 
 #include <sys/scsi/impl/uscsi.h>])
118
 
 
119
 
if test x"$has_cam" = x"yes"; then
120
 
    BRASERO_SCSI_LIBS="-lcam"
121
 
elif test x"$has_sg" = x"yes"; then
122
 
        :
123
 
elif test x"$has_scsiio" = x"yes"; then
124
 
        :
125
 
elif test x"$has_uscsi" = x"yes"; then
126
 
        :
127
 
else
128
 
        AC_MSG_ERROR([Support Linux SG, FreeBSD CAM, NetBSD SCSIPI, Solaris USCSI. No supported SCSI interface headers could not be found.])
129
 
fi
130
 
 
131
 
AM_CONDITIONAL(HAVE_CAM_LIB_H, test x"$has_cam" = "xyes")
132
 
AM_CONDITIONAL(HAVE_SG_IO_HDR_T, test x"$has_sg" = "xyes")
133
 
AM_CONDITIONAL(HAVE_USCSI_H, test x"$has_uscsi" = "xyes")
134
 
AM_CONDITIONAL(HAVE_SCSIIO_H, test x"$has_scsiio" = "xyes")
135
 
 
136
 
dnl ***************** LARGE FILE SUPPORT ***********************
137
 
 
138
 
AC_SYS_LARGEFILE
139
 
 
140
 
dnl ********** Required libraries **********************
141
 
 
142
 
GLIB_REQUIRED=2.29.14
143
 
GTHREAD_REQUIRED=2.6.0
144
 
GMODULE_REQUIRED=2.6.0
145
 
GMODULE_EXPORT_REQUIRED=2.6.0
146
 
GIO_REQUIRED=2.28.0
147
 
GSTREAMER_REQUIRED=0.11.92
148
 
GSTREAMER_BASE_REQUIRED=0.11.92
149
 
GSTREAMER_MODULE_REQUIRED=0.11.92
150
 
LIBXML2_REQUIRED=2.6.0
151
 
 
152
 
dnl ** used by brasero and one plugin
153
 
PKG_CHECK_MODULES(BRASERO_GSTREAMER,                    \
154
 
        gstreamer-1.0 >= $GSTREAMER_REQUIRED            \
155
 
        gstreamer-base-1.0 >= $GSTREAMER_REQUIRED               \
156
 
        gstreamer-video-1.0 >= $GSTREAMER_BASE_REQUIRED \
157
 
        gstreamer-pbutils-1.0 >= $GSTREAMER_BASE_REQUIRED \
158
 
        gstreamer-tag-1.0 >= $GSTREAMER_BASE_REQUIRED)
159
 
BRASERO_GSTREAMER_CFLAGS="-DGST_USE_UNSTABLE_API $BRASERO_GSTREAMER_CFLAGS"
160
 
AC_SUBST(BRASERO_GSTREAMER_CFLAGS)
161
 
AC_SUBST(BRASERO_GSTREAMER_LIBS)
162
 
 
163
 
BRASERO_GSTREAMER_LIBS="$BRASERO_GSTREAMER_LIBS -lgstpbutils-1.0"
164
 
 
165
 
dnl ** used by brasero and one plugin
166
 
PKG_CHECK_MODULES(BRASERO_GIO,  \
167
 
        gio-2.0 >= $GIO_REQUIRED)
168
 
 
169
 
AC_SUBST(BRASERO_GIO_CFLAGS)
170
 
AC_SUBST(BRASERO_GIO_LIBS)
171
 
 
172
 
dnl ** used by brasero and one plugin
173
 
PKG_CHECK_MODULES(BRASERO_LIBXML,       \
174
 
        libxml-2.0 >= $LIBXML2_REQUIRED)
175
 
 
176
 
AC_SUBST(BRASERO_LIBXML_CFLAGS)
177
 
AC_SUBST(BRASERO_LIBXML_LIBS)
178
 
 
179
 
dnl ** used by brasero and both libraries
180
 
PKG_CHECK_MODULES(BRASERO_GTHREAD,              \
181
 
        gthread-2.0 >= $GTHREAD_REQUIRED)
182
 
 
183
 
AC_SUBST(BRASERO_GTHREAD_CFLAGS)
184
 
AC_SUBST(BRASERO_GTHREAD_LIBS)
185
 
 
186
 
dnl ** used by brasero and all modules
187
 
PKG_CHECK_MODULES(BRASERO_GLIB,                 \
188
 
        gobject-2.0 >= $GLIB_REQUIRED           \
189
 
        glib-2.0 >= $GLIB_REQUIRED)
190
 
 
191
 
AC_SUBST(BRASERO_GLIB_CFLAGS)
192
 
AC_SUBST(BRASERO_GLIB_LIBS)
193
 
 
194
 
PKG_CHECK_MODULES(BRASERO_GMODULE,              \
195
 
        gmodule-2.0 >= $GMODULE_REQUIRED)
196
 
 
197
 
AC_SUBST(BRASERO_GMODULE_CFLAGS)
198
 
AC_SUBST(BRASERO_GMODULE_LIBS)
199
 
 
200
 
PKG_CHECK_MODULES(BRASERO_GMODULE_EXPORT,               \
201
 
        gmodule-export-2.0 >= $GMODULE_EXPORT_REQUIRED)
202
 
 
203
 
AC_SUBST(BRASERO_GMODULE_EXPORT_CFLAGS)
204
 
AC_SUBST(BRASERO_GMODULE_EXPORT_LIBS)
205
 
 
206
 
PKG_CHECK_MODULES(BRASERO_SM,
207
 
        sm \
208
 
        ice)
209
 
 
210
 
AC_SUBST(BRASERO_SM_CFLAGS)
211
 
AC_SUBST(BRASERO_SM_LIBS)
212
 
 
213
 
AC_CHECK_LIBM
214
 
AC_SUBST(LIBM)
215
 
 
216
 
#
217
 
# GTK+ stuff (taken and adapted from empathy)
218
 
#
219
 
 
220
 
GTK_REQUIRED=3.0.0
221
 
 
222
 
PKG_CHECK_MODULES([BRASERO_GTK],        \
223
 
                  gtk+-3.0 >= $GTK_REQUIRED     \
224
 
                  gdk-x11-3.0)
225
 
 
226
 
AC_SUBST(BRASERO_GTK_CFLAGS)
227
 
AC_SUBST(BRASERO_GTK_LIBS)
228
 
 
229
 
#
230
 
# libnotify check
231
 
#
232
 
 
233
 
LIBNOTIFY_REQUIRED=0.6.1
234
 
 
235
 
PKG_CHECK_MODULES([BRASERO_LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED])
236
 
AC_SUBST(BRASERO_LIBNOTIFY_CFLAGS)
237
 
AC_SUBST(BRASERO_LIBNOTIFY_LIBS)
238
 
 
239
 
#
240
 
# Canberra
241
 
#
242
 
 
243
 
CANBERRA_REQUIRED=0.1
244
 
 
245
 
PKG_CHECK_MODULES(BRASERO_CANBERRA,
246
 
              libcanberra >= $CANBERRA_REQUIRED
247
 
              libcanberra-gtk3 >= $CANBERRA_REQUIRED)
248
 
 
249
 
AC_SUBST(BRASERO_CANBERRA_CFLAGS)
250
 
AC_SUBST(BRASERO_CANBERRA_LIBS)
251
 
 
252
 
dnl ****************Nautilus**********************************
253
 
# Note: the extension is built against gtk+-3.0 so we cannot build extension with gtk+-2.0
254
 
NAUTILUS_REQUIRED=2.91.90
255
 
 
256
 
AC_ARG_ENABLE(nautilus,
257
 
                        AS_HELP_STRING([--enable-nautilus],[Build Nautilus extension [[default=yes]]]),
258
 
                        [enable_nautilus=$enableval],
259
 
                        [enable_nautilus="yes"])
260
 
 
261
 
AC_ARG_WITH(nautilusdir,
262
 
                        AS_HELP_STRING([--with-nautilusdir=DIR],[Installation path for Nautilus extension @<:@auto@:>@]),
263
 
                        [ac_with_nautilusdir=$withval],
264
 
                        [ac_with_nautilusdir=""])
265
 
 
266
 
if test x"$enable_nautilus" = "xyes"; then
267
 
        PKG_CHECK_MODULES(NAUTILUS_EXTENSION,
268
 
                          libnautilus-extension >= $NAUTILUS_REQUIRED,
269
 
                          build_nautilus=yes,
270
 
                          build_nautilus=no)
271
 
else
272
 
        build_nautilus="no"
273
 
fi
274
 
 
275
 
if test x"$build_nautilus" = "xyes"; then
276
 
        NAUTILUS_EXTENSION_CFLAGS="$BRASERO_GLIB_CFLAGS $BRASERO_UI_CFLAGS $NAUTILUS_EXTENSION_CFLAGS"
277
 
        NAUTILUS_EXTENSION_LIBS="$BRASERO_GLIB_LIBS $BRASERO_UI_LIBS $NAUTILUS_EXTENSION_LIBS"
278
 
 
279
 
        if test "${ac_with_nautilusdir}" = ""; then
280
 
                ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension`
281
 
        fi
282
 
 
283
 
        AC_MSG_NOTICE([installing plugin in ${ac_with_nautilusdir}])
284
 
        AC_SUBST([NAUTILUSDIR],[${ac_with_nautilusdir}])
285
 
 
286
 
        AM_GLIB_DEFINE_LOCALEDIR([GNOMELOCALEDIR])
287
 
fi
288
 
 
289
 
AM_CONDITIONAL(BUILD_NAUTILUS, test x"$build_nautilus" = "xyes")
290
 
 
291
 
#
292
 
# Installation path for plugins
293
 
#
294
 
 
295
 
BRASERO_PLUGIN_DIRECTORY=${libdir}/brasero3/plugins
296
 
AC_SUBST(BRASERO_PLUGIN_DIRECTORY)
297
 
 
298
 
dnl ****************check for libburn (optional)**************
299
 
LIBBURN_REQUIRED=0.4.0
300
 
LIBISOFS_REQUIRED=0.6.4
301
 
 
302
 
AC_ARG_ENABLE(libburnia,
303
 
                        AS_HELP_STRING([--enable-libburnia],[Build libburnia plugins [[default=yes]]]),
304
 
                        [enable_libburnia=$enableval],
305
 
                        [enable_libburnia="yes"])
306
 
 
307
 
if test x"$enable_libburnia" = "xyes"; then
308
 
        PKG_CHECK_MODULES(LIBBURNIA, libburn-1 >= $LIBBURN_REQUIRED  libisofs-1 >= $LIBISOFS_REQUIRED, build_libburnia=yes, build_libburnia=no)
309
 
else
310
 
        build_libburnia="no"
311
 
fi
312
 
 
313
 
if test x"$build_libburnia" = "xyes"; then
314
 
        AC_SUBST(BRASERO_LIBBURNIA_CFLAGS)
315
 
        AC_SUBST(BRASERO_LIBBURNIA_LIBS)
316
 
 
317
 
        BRASERO_LIBBURNIA_CFLAGS="$LIBBURNIA_CFLAGS"
318
 
        BRASERO_LIBBURNIA_LIBS="$LIBBURNIA_LIBS"
319
 
        AC_DEFINE(BUILD_LIBBURNIA, 1, [define if you  want to build libburnia plugins])
320
 
fi
321
 
AM_CONDITIONAL(BUILD_LIBBURNIA, test x"$build_libburnia" = "xyes")
322
 
 
323
 
dnl **************** check for cdrtools **********************
324
 
AC_ARG_ENABLE(cdrtools,
325
 
                        AS_HELP_STRING([--enable-cdrtools],[Build cdrtools plugins [[default=yes]]]),
326
 
                        [build_cdrtools=$enableval],
327
 
                        [build_cdrtools="yes"])
328
 
 
329
 
if test x"$build_cdrtools" = "xyes"; then
330
 
        AC_DEFINE(BUILD_CDRTOOLS, 1, [define if you  want to build cdrtools plugins])
331
 
else
332
 
        build_cdrtools="no"
333
 
fi
334
 
AM_CONDITIONAL(BUILD_CDRTOOLS, test x"$build_cdrtools" = "xyes")
335
 
 
336
 
dnl **************** check for cdrdao **********************
337
 
AC_ARG_ENABLE(cdrdao,
338
 
                        AS_HELP_STRING([--enable-cdrdao],[Build cdrdao plugins [[default=yes]]]),
339
 
                        [build_cdrdao=$enableval],
340
 
                        [build_cdrdao="yes"])
341
 
 
342
 
if test x"$build_cdrdao" = "xyes"; then
343
 
        AC_DEFINE(BUILD_CDRDAO, 1, [define if you  want to build cdrdao plugins])
344
 
else
345
 
        build_cdrdao="no"
346
 
fi
347
 
AM_CONDITIONAL(BUILD_CDRDAO, test x"$build_cdrdao" = "xyes")
348
 
 
349
 
dnl **************** check for cdrkit ************************
350
 
AC_ARG_ENABLE(cdrkit,
351
 
                        AS_HELP_STRING([--enable-cdrkit],[Build cdrkit plugins [[default=yes]]]),
352
 
                        [build_cdrkit=$enableval],
353
 
                        [build_cdrkit="yes"])
354
 
 
355
 
if test x"$build_cdrkit" = "xyes"; then
356
 
        AC_DEFINE(BUILD_CDRKIT, 1, [define if you  want to build cdrkit plugins])
357
 
else
358
 
        build_cdrkit="no"
359
 
fi
360
 
AM_CONDITIONAL(BUILD_CDRKIT, test x"$build_cdrkit" = "xyes")
361
 
 
362
 
dnl **************** check for growisofs ************************
363
 
AC_ARG_ENABLE(growisofs,
364
 
                        AS_HELP_STRING([--enable-growisofs],[Build growisofs plugins [[default=yes]]]),
365
 
                        [build_growisofs=$enableval],
366
 
                        [build_growisofs="yes"])
367
 
 
368
 
if test x"$build_growisofs" = "xyes"; then
369
 
        AC_DEFINE(BUILD_GROWISOFS, 1, [define if you  want to build growisofs plugins])
370
 
else
371
 
        build_growisofs="no"
372
 
fi
373
 
AM_CONDITIONAL(BUILD_GROWISOFS, test x"$build_growisofs" = "xyes")
374
 
 
375
 
TRACKER_REQUIRED=0.10.0
376
 
 
377
 
AC_ARG_ENABLE(search,
378
 
                        AS_HELP_STRING([--enable-search],[Build search pane (if a search backend is available) [[default=auto]]]),
379
 
                        [case "$enableval" in
380
 
                                "auto"|"yes"|"no") ;;
381
 
                                *)         echo "Unknown option"; exit 2 ;;
382
 
                        esac],
383
 
                        [enable_search="auto"])
384
 
 
385
 
if test x"$enable_search" = "xauto"; then
386
 
        PKG_CHECK_EXISTS([tracker-sparql-0.14 >= $TRACKER_REQUIRED],
387
 
                          [enable_search=yes],
388
 
                          [PKG_CHECK_EXISTS([tracker-sparql-0.12 >= $TRACKER_REQUIRED],
389
 
                                            [enable_search=yes],
390
 
                                            [PKG_CHECK_EXISTS([tracker-sparql-0.10 >= $TRACKER_REQUIRED],
391
 
                                                              [enable_search=yes],
392
 
                                                              [enable_search=no])])])
393
 
fi
394
 
 
395
 
if test x"$enable_search" = "xyes"; then
396
 
        PKG_CHECK_EXISTS([tracker-sparql-0.14 >= $TRACKER_REQUIRED],
397
 
                         [tracker_api=0.14],
398
 
                         [PKG_CHECK_EXISTS([tracker-sparql-0.12 >= $TRACKER_REQUIRED],
399
 
                                           [tracker_api=0.12], [tracker_api=0.10])])
400
 
        PKG_CHECK_MODULES(BRASERO_SEARCH, tracker-sparql-$tracker_api >= $TRACKER_REQUIRED)
401
 
        AC_DEFINE(BUILD_SEARCH, 1, [define if you  want to use search pane])
402
 
        AC_DEFINE(BUILD_TRACKER, 1, [define if you  want to use search pane])
403
 
        AC_SUBST(BRASERO_SEARCH_CFLAGS)
404
 
        AC_SUBST(BRASERO_SEARCH_LIBS)
405
 
        build_tracker="yes"
406
 
        build_search="yes"
407
 
else
408
 
        build_search="no"
409
 
fi
410
 
 
411
 
AM_CONDITIONAL(BUILD_SEARCH, test x"$build_search" = "xyes")
412
 
AM_CONDITIONAL(BUILD_TRACKER, test x"$build_tracker" = "xyes")
413
 
 
414
 
dnl ****************check for playlist (optional)**************
415
 
TOTEM_REQUIRED=2.29.1
416
 
 
417
 
AC_ARG_ENABLE(playlist,
418
 
                        AS_HELP_STRING([--enable-playlist],[Build playlist pane (if totem-pl-parser is available)[[default=yes]]]),
419
 
                        [enable_playlist=$enableval],
420
 
                        [enable_playlist="yes"])
421
 
 
422
 
if test x"$enable_playlist" = "xyes"; then
423
 
        PKG_CHECK_MODULES(BRASERO_PL_PARSER, totem-plparser >= $TOTEM_REQUIRED, build_totem=yes, build_totem=no)
424
 
else
425
 
        build_totem="no"
426
 
fi
427
 
 
428
 
if test x"$build_totem" = "xyes"; then
429
 
        AC_DEFINE(BUILD_PLAYLIST, 1, [define if you  want to build playlist pane])
430
 
fi
431
 
 
432
 
AC_SUBST(BRASERO_PL_PARSER_CFLAGS)
433
 
AC_SUBST(BRASERO_PL_PARSER_LIBS)
434
 
 
435
 
AM_CONDITIONAL(BUILD_PLAYLIST, test x"$build_totem" = "xyes")
436
 
 
437
 
dnl ****************check for preview (optional)**************
438
 
AC_ARG_ENABLE(preview,
439
 
                        AS_HELP_STRING([--enable-preview],[Build preview pane [[default=yes]]]),
440
 
                        [enable_preview=$enableval],
441
 
                        [enable_preview="yes"])
442
 
 
443
 
if test x"$enable_preview" = "xyes"; then
444
 
        PKG_CHECK_MODULES(BRASERO_GSTREAMER_BASE, gstreamer-plugins-base-1.0 >= $GSTREAMER_MODULE_REQUIRED, build_preview=yes, build_preview=no)
445
 
else
446
 
        build_preview="no"
447
 
fi
448
 
 
449
 
if test x"$build_preview" = "xyes"; then
450
 
        AC_DEFINE(BUILD_PREVIEW, 1, [define if you  want to build preview pane])
451
 
fi
452
 
 
453
 
AC_SUBST(BRASERO_GSTREAMER_BASE_CFLAGS)
454
 
AC_SUBST(BRASERO_GSTREAMER_BASE_LIBS)
455
 
 
456
 
AM_CONDITIONAL(BUILD_PREVIEW, test x"$build_preview" = "xyes")
457
 
 
458
 
dnl ****************check for inotify (optional)**************
459
 
AC_ARG_ENABLE(inotify,
460
 
                        AS_HELP_STRING([--enable-inotify],[use inotify [[default=yes]]]),
461
 
                        [enable_inotify=$enableval],
462
 
                        [enable_inotify="yes"])
463
 
 
464
 
if test x"$enable_inotify" = "xyes"; then
465
 
        AC_DEFINE(BUILD_INOTIFY, 1, [define if you  want to build inotify])
466
 
fi
467
 
AM_CONDITIONAL(BUILD_INOTIFY, test x"$enable_inotify" = "xyes")
468
 
 
469
 
dnl ****** GObject Introspection **********************
470
 
dnl This is a copy of the m4 function in gobject-introspection package
471
 
dnl but it was modified so the install path can be forced with a command
472
 
dnl line parameter. This is to be able to use make distcheck.
473
 
 
474
 
GOBJECT_INTROSPECTION_REQUIRED=0.6.3
475
 
 
476
 
AC_ARG_ENABLE(introspection,
477
 
                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], [Enable introspection for this build]),
478
 
                  [enable_introspection=$enableval],
479
 
                  [enable_introspection="auto"])
480
 
 
481
 
AC_ARG_WITH(girdir,
482
 
                        AS_HELP_STRING([--with-girdir=DIR],[Installation path for .gir files @<:@auto@:>@]),
483
 
                        [ac_with_girdir=$withval],
484
 
                        [ac_with_girdir=""])
485
 
 
486
 
AC_ARG_WITH(typelibdir,
487
 
                        AS_HELP_STRING([--with-typelibdir=DIR],[Installation path for .typelib files @<:@auto@:>@]),
488
 
                        [ac_with_typelibdir=$withval],
489
 
                        [ac_with_typelibdir=""])
490
 
 
491
 
AC_MSG_CHECKING([for gobject-introspection])
492
 
 
493
 
dnl presence/version checking
494
 
AS_CASE([$enable_introspection],
495
 
    [no], [dnl
496
 
        found_introspection="no (disabled, use --enable-introspection to enable)"
497
 
    ],dnl
498
 
    [yes],[dnl
499
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
500
 
                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
501
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED],
502
 
                         found_introspection=yes,
503
 
                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
504
 
    ],dnl
505
 
    [auto],[dnl
506
 
        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED], found_introspection=yes, found_introspection=no)
507
 
    ],dnl
508
 
    [dnl        
509
 
        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
510
 
])dnl
511
 
 
512
 
AC_MSG_RESULT([$found_introspection])
513
 
 
514
 
INTROSPECTION_SCANNER=
515
 
INTROSPECTION_COMPILER=
516
 
INTROSPECTION_GENERATE=
517
 
INTROSPECTION_GIRDIR=
518
 
INTROSPECTION_TYPELIBDIR=
519
 
if test "x$found_introspection" = "xyes"; then
520
 
        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
521
 
        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
522
 
        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
523
 
 
524
 
        if test "${ac_with_girdir}" = ""; then
525
 
                ac_with_girdir=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
526
 
        fi
527
 
        INTROSPECTION_GIRDIR=${ac_with_girdir}
528
 
        AC_MSG_NOTICE([installing .gir files in ${INTROSPECTION_GIRDIR}])
529
 
 
530
 
        if test "${ac_with_typelibdir}" = ""; then
531
 
                ac_with_typelibdir="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
532
 
        fi
533
 
        INTROSPECTION_TYPELIBDIR=${ac_with_typelibdir}
534
 
        AC_MSG_NOTICE([installing .typelib files in ${INTROSPECTION_TYPELIBDIR}])
535
 
fi
536
 
AC_SUBST(INTROSPECTION_SCANNER)
537
 
AC_SUBST(INTROSPECTION_COMPILER)
538
 
AC_SUBST(INTROSPECTION_GENERATE)
539
 
AC_SUBST(INTROSPECTION_GIRDIR)
540
 
AC_SUBST(INTROSPECTION_TYPELIBDIR)
541
 
 
542
 
AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
543
 
 
544
 
dnl ****** Update mime, desktop and icon caches *******
545
 
AC_ARG_ENABLE(caches,
546
 
                        AS_HELP_STRING([--enable-caches],[Run update-* to update mime, desktop and icon caches when installing [[default=yes]]]),
547
 
                        [enable_caches=$enableval],
548
 
                        [enable_caches="yes"])
549
 
 
550
 
AM_CONDITIONAL(UPDATE_CACHES, test x"$enable_caches" = "xyes")
551
 
 
552
 
dnl ****** INTERNATIONALIZATION **********************
553
 
GETTEXT_PACKAGE=brasero
554
 
AC_SUBST(GETTEXT_PACKAGE)
555
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
556
 
 
557
 
AM_GLIB_GNU_GETTEXT
558
 
 
559
 
IT_PROG_INTLTOOL([0.35.0])
560
 
 
561
 
if test "x${prefix}" = "xNONE"; then
562
 
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Location of package locale files])
563
 
else
564
 
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale", [Location of package locale files])
565
 
fi
566
 
 
567
 
dnl ****** END ***********************
568
 
 
569
 
AC_CONFIG_FILES([
570
 
Makefile
571
 
docs/Makefile
572
 
docs/reference/Makefile
573
 
docs/reference/libbrasero-media/Makefile
574
 
docs/reference/libbrasero-burn/Makefile
575
 
docs/reference/libbrasero-media/version.xml
576
 
docs/reference/libbrasero-burn/version.xml
577
 
data/Makefile
578
 
data/brasero.desktop.in
579
 
data/icons/Makefile
580
 
data/mime/Makefile
581
 
help/Makefile
582
 
nautilus/Makefile
583
 
nautilus/brasero-nautilus.desktop.in
584
 
libbrasero-media/Makefile
585
 
libbrasero-media/brasero-media.h
586
 
libbrasero-utils/Makefile
587
 
libbrasero-burn/Makefile
588
 
libbrasero-burn/brasero-burn-lib.h
589
 
plugins/Makefile
590
 
plugins/audio2cue/Makefile
591
 
plugins/cdrdao/Makefile
592
 
plugins/cdrkit/Makefile
593
 
plugins/cdrtools/Makefile
594
 
plugins/growisofs/Makefile
595
 
plugins/libburnia/Makefile
596
 
plugins/transcode/Makefile
597
 
plugins/dvdcss/Makefile
598
 
plugins/dvdauthor/Makefile
599
 
plugins/checksum/Makefile
600
 
plugins/local-track/Makefile
601
 
plugins/vcdimager/Makefile
602
 
po/Makefile.in
603
 
src/Makefile
604
 
libbrasero-media3.pc
605
 
libbrasero-burn3.pc
606
 
])
607
 
 
608
 
AC_OUTPUT
609
 
 
610
 
echo
611
 
echo
612
 
echo "$PACKAGE configuration summary:"
613
 
echo "----------------------------------"
614
 
 
615
 
dnl     Build libnotify support : ${build_libnotify}
616
 
 
617
 
echo "Version: $BRASERO_VERSION
618
 
        Using GTK+ 3
619
 
        Update caches: ${enable_caches}
620
 
        Build Nautilus extension : ${build_nautilus}
621
 
        Build inotify: ${enable_inotify}
622
 
        Build search pane : ${build_search}
623
 
        Build playlist pane : ${build_totem}
624
 
        Build Preview pane : ${build_preview}
625
 
        Plugins installed in : ${BRASERO_PLUGIN_DIRECTORY}
626
 
        Build cdrdao plugins : ${build_cdrdao}
627
 
        Build cdrtools plugins : ${build_cdrtools}
628
 
        Build cdrkit plugins : ${build_cdrkit}
629
 
        Build growisofs plugins : ${build_growisofs}
630
 
        Build libburnia plugins : ${build_libburnia}
631
 
        Build GObject-Introspection : ${found_introspection}
632
 
"
633
 
echo
634
 
echo