[l10n] Updated German translation
[banshee:bl8-clone.git] / configure.ac
1 dnl Granularly define the version components
2 dnl Remember to also update the Display Version
3 m4_define([banshee_version_major], [2])
4 m4_define([banshee_version_minor], [3])
5 m4_define([banshee_version_micro], [3])
6
7 dnl this can sometimes differ manually
8 m4_define([banshee_display_version], ["2.3.3"])
9
10 dnl set to 0 when doing an official release
11 m4_define([banshee_version_pre_release], [0])
12
13 m4_define([concat], $1$2$3$4)
14
15 dnl create base version string
16 m4_define([banshee_version], concat(banshee_version_major., banshee_version_minor., banshee_version_micro))
17
18 dnl create the release version
19 m4_define([banshee_version],
20         m4_if(banshee_version_pre_release, [0],
21                 banshee_version,
22                 concat(banshee_version, banshee_version_pre_release)))
23
24 m4_define([banshee_api_version], [banshee_version_major.banshee_version_minor])
25 m4_define([banshee_asm_version], [banshee_api_version.0.0])
26
27 AC_PREREQ(2.52)
28 AC_INIT([banshee], banshee_version, [http://bugzilla.gnome.org/enter_bug.cgi?product=banshee])
29
30 AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar foreign])
31 AM_MAINTAINER_MODE([enable])
32 AM_CONFIG_HEADER([config.h])
33 AC_CONFIG_MACRO_DIR([build/m4])
34 AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/banshee -I build/m4/shave \${ACLOCAL_FLAGS}"])
35
36 IT_PROG_INTLTOOL([0.35.0])
37 AC_PROG_LIBTOOL
38 AC_PROG_INSTALL
39
40 dnl How to configure for distcheck
41 DISTCHECK_CONFIGURE_FLAGS="--disable-docs --enable-mtp --enable-daap --enable-user-help --enable-release"
42 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
43
44 dnl Export Version Info
45 AC_SUBST([API_VERSION], [banshee_api_version])
46 AC_SUBST([ASM_VERSION], [banshee_asm_version])
47 AC_SUBST([DISPLAY_VERSION], [banshee_display_version])
48
49 dnl Expansions
50 SHAMROCK_EXPAND_LIBDIR
51 SHAMROCK_EXPAND_BINDIR
52 SHAMROCK_EXPAND_DATADIR
53
54 dnl libbanshee/native dependencies (required)
55 BANSHEE_CHECK_LIBBANSHEE
56 BANSHEE_CHECK_GSTREAMER
57
58 dnl For the new media backend using gstreamer-sharp
59 BANSHEE_CHECK_GSTREAMER_SHARP
60
61 BANSHEE_CHECK_NOW_PLAYING_X11
62
63 dnl User help
64 SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)
65
66 dnl Mono and gmcs
67 SHAMROCK_CHECK_MONO_MODULE(2.4.3)
68 SHAMROCK_FIND_MONO_2_0_COMPILER
69 SHAMROCK_FIND_MONO_RUNTIME
70 SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([Mono.Cairo Mono.Posix ICSharpCode.SharpZipLib])
71
72 dnl Check for GNOME >= 2.28 to see if we should remove
73 dnl 'Media Player' from the app Name, bgo#596242, except
74 dnl in MeeGo where GNOME >= 2.28, but we want the full name
75 PKG_CHECK_MODULES(GNOME_2_28, gnome-desktop-2.0 >= 2.28, HAVE_GNOME_2_28=yes, HAVE_GNOME_2_28=no)
76 PKG_CHECK_MODULES(MEEGO_PANEL, meego-panel, HAVE_MEEGO_PANEL=yes, HAVE_MEEGO_PANEL=no)
77 if test "x$HAVE_GNOME_2_28" = "xno" -o "x$HAVE_MEEGO_PANEL" = "xyes"; then
78         BANSHEE_DESKTOP_NAME="_Name=Banshee Media Player"
79 else
80         BANSHEE_DESKTOP_NAME="_Name=Banshee"
81 fi
82 AC_SUBST(BANSHEE_DESKTOP_NAME)
83
84 if test "x$HAVE_MEEGO_PANEL" = "xyes"; then
85   MEEGO_PANELS_DIR=`$PKG_CONFIG --variable=meego_panel_panels_dir meego-panel`
86 else
87   MEEGO_PANELS_DIR='${datadir}/mutter-meego/panels'
88 fi
89 AC_SUBST(MEEGO_PANELS_DIR)
90
91
92 dnl Check for gdk-x11 >= 2.22 for NotificationArea extension, bgo#638477
93 PKG_CHECK_MODULES(GDK_2_22, gdk-x11-2.0 >= 2.22, have_gdk_2_22=yes, have_gdk_2_22=no)
94 AM_CONDITIONAL(HAVE_GDK_2_22, test "x$have_gdk_2_22" = "xyes")
95
96 dnl DBus Sharp libraries
97 BANSHEE_CHECK_DBUS_SHARP
98
99 dnl Mono.Addins libraries
100 BANSHEE_CHECK_MONO_ADDINS
101
102 dnl notify-sharp library
103 BANSHEE_CHECK_NOTIFY_SHARP
104
105 dnl Boo
106 BANSHEE_CHECK_BOO
107
108 dnl Monodoc (optional through --disable-docs)
109 SHAMROCK_CHECK_MONODOC
110
111 dnl webkit (optional through --disable-webkit)
112 BANSHEE_CHECK_LIBWEBKIT
113
114 dnl gdata (optional through --disable-youtube)
115 BANSHEE_CHECK_YOUTUBE
116
117 dnl gtk#-beans and gio#
118 BANSHEE_CHECK_GIO_SHARP
119
120 dnl Moonlight (optional through --enable-moonlight)
121 BANSHEE_CHECK_MOONLIGHT
122
123 dnl NUnit (optional)
124 SHAMROCK_CHECK_NUNIT
125
126 dnl External TagLib# libraries (optional)
127 BANSHEE_CHECK_TAGLIB_SHARP
128
129 dnl Required dependencies (managed/core)
130 BANSHEE_CHECK_GTK_SHARP
131
132 dnl OS X (optional through --enable-osx)
133 BANSHEE_CHECK_OSX
134
135 PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.4)
136
137 dnl GNOME (optional)
138 AC_ARG_ENABLE(gnome, AC_HELP_STRING([--disable-gnome], [Disable GNOME support]), , enable_gnome="yes")
139 if test "x$enable_gnome" = "xyes"; then
140         BANSHEE_CHECK_GNOME_SHARP
141         BANSHEE_CHECK_GCONF
142         AM_CONDITIONAL(ENABLE_GNOME, true)
143 else
144         AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
145         AM_CONDITIONAL(ENABLE_GNOME, false)
146 fi
147
148 dnl DAP support (each module is optional)
149 BANSHEE_CHECK_DAP_MTP
150 BANSHEE_CHECK_DAP_APPLEDEVICE
151 BANSHEE_CHECK_DAP_KARMA
152
153 dnl DAAP support (optional)
154 BANSHEE_CHECK_DAAP
155
156 dnl RemoteAudio support (optional)
157 BANSHEE_CHECK_REMOTE_AUDIO
158
159 dnl MonoTorrent support (optional)
160 BANSHEE_CHECK_TORRENT
161
162 dnl MeeGo integration (optional)
163 BANSHEE_CHECK_MEEGO
164
165 dnl Sound menu integration (optional)
166 BANSHEE_CHECK_SOUNDMENU
167
168 dnl Ubuntu One Music Store (optional)
169 BANSHEE_CHECK_UBUNTUONE
170
171 dnl Gapless, if we have a new-enough playbin2
172 ENABLE_GAPLESS="no"
173 AC_ARG_ENABLE(gapless-playback,
174         AC_HELP_STRING([--enable-gapless-playback],
175                 [Enable gapless playback engine (requires gst-plugins-base > 0.10.25.2)]),
176                 enable_gapless=$enableval,
177                 enable_gapless=auto)
178 if test "x$enable_gapless" != "xno" ; then
179         PKG_CHECK_MODULES([GST_PLUGINS_BASE], [gstreamer-plugins-base-0.10 > 0.10.25.2], ENABLE_GAPLESS=yes, ENABLE_GAPLESS=no)
180         if test "x$enable_gapless" == "xyes" -a "x$ENABLE_GAPLESS" == "xno" ; then
181                 AC_MSG_ERROR([Gapless playback requires gstreamer-plugins-base > 0.10.25.2])
182         fi
183 fi
184 AM_CONDITIONAL(ENABLE_GAPLESS, test "x$ENABLE_GAPLESS" = "xyes")   
185
186 dnl i18n
187 SHAMROCK_CONFIGURE_I18N($PACKAGE)
188
189 AC_ARG_ENABLE(release,
190         AC_HELP_STRING([--enable-release],
191                 [Use release configuration]),
192         enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
193 AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
194 ENABLE_RELEASE=$enable_release
195 AC_SUBST(ENABLE_RELEASE)
196 if test "x$enable_release" = "xyes"; then
197         GMCS_FLAGS="-define:RELEASE"
198 else
199         GMCS_FLAGS="-warnaserror"
200 fi
201 AC_SUBST(GMCS_FLAGS)
202
203 AM_CONDITIONAL(HYENA_PKG_CONFIG, false)
204
205 AC_ARG_WITH(vendor-build-id,
206         AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
207                 [Set a vendor build ID, recommended for packagers]),
208         [vendor_build_id="$withval"], [
209                 test -d .git \
210                         && vendor_build_id="git-checkout" \
211                         || vendor_build_id="source-tarball"
212         ])
213 BUILD_VENDOR_ID="$vendor_build_id"
214 BUILD_HOST_OS="$host_os"
215 BUILD_HOST_CPU="$host_cpu"
216 BUILD_TIME=`date +"%F %T %Z"`
217 AC_SUBST(BUILD_VENDOR_ID)
218 AC_SUBST(BUILD_HOST_OS)
219 AC_SUBST(BUILD_HOST_CPU)
220 AC_SUBST(BUILD_TIME)
221
222 SHAVE_INIT([build/m4/shave], [enable])
223
224 dnl generated files
225 AC_OUTPUT([
226 Makefile
227
228 build/Makefile
229 build/m4/Makefile
230 build/m4/shave/shave
231 build/m4/shave/shave-libtool
232 build/pkg-config/Makefile
233
234 data/Makefile
235 data/org.bansheeproject.Banshee.service
236 data/org.bansheeproject.CollectionIndexer.service
237 data/audio-profiles/Makefile
238 data/desktop-files/Makefile
239 data/desktop-files/common.desktop
240 data/icon-theme-hicolor/Makefile
241
242 help/Makefile
243
244 docs/Makefile
245 docs/Hyena/Makefile
246 docs/Banshee/Makefile
247
248 po/Makefile.in
249
250 tests/Makefile
251 tests/Analyzer/Makefile
252 tests/Performance/Makefile
253
254 extras/Makefile
255
256 libbanshee/Makefile
257
258 src/Hyena/Makefile
259 src/Hyena/build/Makefile
260 src/Hyena/build/pkg-config/Makefile
261 src/Hyena/build/m4/Makefile
262 src/Hyena/Hyena/Makefile
263 src/Hyena/Hyena.Data.Sqlite/Makefile
264 src/Hyena/Hyena.Gui/Makefile
265
266 src/Makefile
267 src/AssemblyInfo.cs
268
269 src/Clients/Makefile
270 src/Clients/Beroe/Makefile
271 src/Clients/Booter/Makefile
272 src/Clients/Booter/banshee.linux
273 src/Clients/Booter/banshee.darwin
274 src/Clients/Halie/Makefile
275 src/Clients/Muinshee/Makefile
276 src/Clients/Nereid/Makefile
277 src/Clients/MeeGo/Makefile
278
279 src/Core/Makefile
280 src/Core/Banshee.CollectionIndexer/Makefile
281 src/Core/Banshee.Core/Makefile
282 src/Core/Banshee.Services/Makefile
283 src/Core/Banshee.ThickClient/Makefile
284 src/Core/Banshee.Widgets/Makefile
285 src/Core/Banshee.WebBrowser/Makefile
286 src/Core/Banshee.WebBrowser/libossifer/Makefile
287
288 src/Backends/Makefile
289 src/Backends/Banshee.Gio/Makefile
290 src/Backends/Banshee.Gnome/Makefile
291 src/Backends/Banshee.GStreamer/Makefile
292 src/Backends/Banshee.GStreamerSharp/Makefile
293 src/Backends/Banshee.Unix/Makefile
294 src/Backends/Banshee.Osx/Makefile
295 src/Backends/Banshee.NowPlaying.X11/Makefile
296 src/Backends/Banshee.NowPlaying.X11/libbnpx11/Makefile
297 src/Backends/Banshee.Windows/Makefile
298
299 src/Libraries/Makefile
300 src/Libraries/Lastfm/Makefile
301 src/Libraries/Lastfm.Gui/Makefile
302 src/Libraries/Migo/Makefile
303 src/Libraries/Mono.Media/Makefile
304 src/Libraries/Mtp/Makefile
305 src/Libraries/Mtp/Mtp.dll.config
306 src/Libraries/MusicBrainz/Makefile
307
308 src/Dap/Makefile
309 src/Dap/Banshee.Dap/Makefile
310 src/Dap/Banshee.Dap.AppleDevice/Makefile
311 src/Dap/Banshee.Dap.MassStorage/Makefile
312 src/Dap/Banshee.Dap.Mtp/Makefile
313 src/Dap/Banshee.Dap.Karma/Makefile
314
315 src/Extensions/Makefile
316 src/Extensions/Banshee.AmazonMp3/Makefile
317 src/Extensions/Banshee.AmazonMp3.Store/Makefile
318 src/Extensions/Banshee.Audiobook/Makefile
319 src/Extensions/Banshee.BooScript/Makefile
320 src/Extensions/Banshee.Bpm/Makefile
321 src/Extensions/Banshee.CoverArt/Makefile
322 src/Extensions/Banshee.Daap/Makefile
323 src/Extensions/Banshee.Emusic/Makefile
324 src/Extensions/Banshee.Emusic.Store/Makefile
325 src/Extensions/Banshee.FileSystemQueue/Makefile
326 src/Extensions/Banshee.InternetArchive/Makefile
327 src/Extensions/Banshee.Fixup/Makefile
328 src/Extensions/Banshee.InternetRadio/Makefile
329 src/Extensions/Banshee.Lastfm/Makefile
330 src/Extensions/Banshee.LastfmStreaming/Makefile
331 src/Extensions/Banshee.LibraryWatcher/Makefile
332 src/Extensions/Banshee.MiniMode/Makefile
333 src/Extensions/Banshee.MiroGuide/Makefile
334 src/Extensions/Banshee.MeeGo/Makefile
335 src/Extensions/Banshee.Mpris/Makefile
336 src/Extensions/Banshee.MultimediaKeys/Makefile
337 src/Extensions/Banshee.NotificationArea/Makefile
338 src/Extensions/Banshee.NowPlaying/Makefile
339 src/Extensions/Banshee.OpticalDisc/Makefile
340 src/Extensions/Banshee.PlayQueue/Makefile
341 src/Extensions/Banshee.PlayerMigration/Makefile
342 src/Extensions/Banshee.Podcasting/Makefile
343 src/Extensions/Banshee.SoundMenu/Makefile
344 src/Extensions/Banshee.SqlDebugConsole/Makefile
345 src/Extensions/Banshee.Sample/Makefile
346 src/Extensions/Banshee.Torrent/Makefile
347 src/Extensions/Banshee.RemoteAudio/Makefile
348 src/Extensions/Banshee.UbuntuOneMusicStore/Makefile
349 src/Extensions/Banshee.Wikipedia/Makefile
350 src/Extensions/Banshee.YouTube/Makefile
351
352 extras/metrics/Makefile
353 ])
354
355 cat <<EOF
356
357 ${PACKAGE}-${VERSION}
358
359   Build Environment
360     Install Prefix:        ${prefix}
361     Datadir:               ${expanded_datadir}
362     Libdir:                ${expanded_libdir}
363
364     C Compiler:            ${CC}
365     Mono C# Compiler:      ${MCS} ${GMCS_FLAGS}
366     Mono Runtime:          ${MONO}
367     Gtk#:                  ${gtk_version}
368
369   Video/Graphics:
370     Graphics System:       ${GRAPHICS_SUBSYSTEM}
371     X11 Video:             ${have_xvidmode}
372     Clutter:               ${enable_clutter}
373
374   Operating System/Desktop Environment:
375     GNOME Support:         ${enable_gnome}
376     OSX Support:           ${enable_osx}
377     MeeGo Support:         ${enable_meego}
378
379   Digital Audio Player (DAP) Support:
380     Apple Device:          ${enable_appledevice} (libgpod-sharp)
381     Karma:                 ${enable_karmasharp}
382     Mass Storage:          yes
383     MTP:                   ${enable_libmtp}
384
385   Extra Features:
386     Web Browser:           ${have_libwebkit} (webkit-1.0 >= $WEBKIT_MIN_VERSION, libsoup-2.4 >= $SOUP_MIN_VERSION)
387       + GNOME Proxy        ${have_libsoup_gnome} (libsoup-gnome-2.4 >= $SOUP_GNOME_MIN_VERSION)
388     Boo Scripting:         ${enable_boo}
389     DAAP:                  ${enable_daap}
390     GIO Backend:           ${enable_gio} (glib >= 2.22, gio-sharp >= 2.22.3, and gtk-sharp-beans)
391     GIO Hardware:          ${enable_gio_hardware} (gudev-sharp, gkeyfile-sharp)
392     YouTube:               ${enable_youtube} (gdata-sharp >= 1.4)
393     Sound Menu:            ${enable_soundmenu}
394     Ubuntu One Store:      ${enable_ubuntuone} (ubuntuone-sharp >= 0.3.2)
395
396   Build/Development:
397     Unit Tests:            ${do_tests} (nunit >= ${NUNIT_REQUIRED})
398     API Docs:              ${enable_docs} (monodocer and mdassembler)
399     User Help:             ${enable_user_help} (gnome-doc-utils >= 0.17.3)
400     Release Build:         ${enable_release}
401     Vendor Build ID:       ${vendor_build_id}
402
403 EOF
404
405 # Unstable/in-development features; only show them if they were manually enabled
406 if test "x$enable_moonlight" = "xyes";    then br=yes; echo "  Moonlight Effects:   ${enable_moonlight}";    fi
407 if test "x$enable_remote_audio" = "xyes"; then br=yes; echo "  Remote Audio:        ${enable_remote_audio}"; fi
408 if test "x$enable_torrent" = "xyes";      then br=yes; echo "  Torrent Podcasts:    ${enable_torrent}";      fi
409 if test "x$enable_gst_sharp" = "xyes";    then br=yes; echo "  Gst# Backend:        ${enable_gst_sharp} (unfinished, experimental!)";      fi
410
411 if test -d ${expanded_libdir}/${PACKAGE}; then
412         if test x$br = xyes; then echo; fi
413         echo "  WARNING: An existing Banshee install is in ${expanded_libdir}/${PACKAGE}"
414         echo "           Remove the existing install before installing this build."
415         echo "           Installing over an existing install will cause conflicts!"
416         echo 
417 fi