Dap.Bluetooth: Extract Gnome specific component
[banshee-community-extensions:banshee-community-extensions.git] / configure.ac
1 AC_PREREQ(2.52)
2 AC_INIT([banshee-community-extensions], 2.9.2,
3         [http://bugzilla.gnome.org/enter_bug.cgi?product=banshee&component=Community%20Extensions])
4
5 AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar dist-zip foreign])
6 AM_MAINTAINER_MODE([enable])
7 AC_CONFIG_HEADERS([config.h])
8
9 IT_PROG_INTLTOOL([0.35.0])
10 AC_PROG_LIBTOOL
11 AC_PROG_INSTALL
12
13 dnl How to configure for distcheck
14 DISTCHECK_CONFIGURE_FLAGS="--enable-release"
15 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
16
17 dnl Expansions
18 SHAMROCK_EXPAND_LIBDIR
19 SHAMROCK_EXPAND_BINDIR
20 SHAMROCK_EXPAND_DATADIR
21
22 dnl User help
23 SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)
24
25 dnl Mono, gmcs and xbuild
26 SHAMROCK_CHECK_MONO_MODULE(2.8.2)
27 SHAMROCK_FIND_MONO_3_0_COMPILER
28 SHAMROCK_FIND_MONO_RUNTIME
29 SHAMROCK_FIND_XBUILD
30
31 dnl Banshee deps
32 PKG_CHECK_MODULES(BANSHEE, banshee-thickclient >= 2.9.2)
33 AC_SUBST(BANSHEE_LIBS)
34
35 dnl Banshee Extensions Path
36 BCE_FIND_BANSHEE
37
38 dnl For native/glue libraries
39 AC_ISC_POSIX
40 AC_PROG_CC
41 AC_PROG_CXX
42 AC_HEADER_STDC
43
44 dnl GNOME (optional)
45 AC_ARG_ENABLE(gnome, 
46         AC_HELP_STRING([--disable-gnome], 
47                 [Disable GNOME support]), 
48         , enable_gnome="yes")
49 if test "x$enable_gnome" = "xyes"; then
50         AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
51         AM_GCONF_SOURCE_2
52         AM_CONDITIONAL(ENABLE_GNOME, true)
53 else
54         AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
55         AM_CONDITIONAL(ENABLE_GNOME, false)
56 fi
57
58 dnl i18n
59 SHAMROCK_CONFIGURE_I18N($PACKAGE)
60
61 dnl Release
62 AC_ARG_ENABLE(release,
63         AC_HELP_STRING([--enable-release],
64                 [Use release configuration]),
65         enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
66 AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
67 ENABLE_RELEASE=$enable_release
68 AC_SUBST(ENABLE_RELEASE)
69 if test "x$enable_release" = "xyes"; then
70         GMCS_FLAGS="-define:RELEASE"
71 else
72         GMCS_FLAGS="-warnaserror"
73 fi
74 AC_SUBST(GMCS_FLAGS)
75
76 dnl Unit Tests (optional)
77 SHAMROCK_CHECK_UNIT_TESTS
78
79 dnl Extensions
80 BCE_ALARMCLOCK
81 BCE_ALBUMARTWRITER
82 BCE_AMPACHE
83 BCE_ANDROIDREMOTE
84 BCE_APPINDICATOR
85 BCE_ARTISTLISTCOVERS
86 BCE_AWN
87 BCE_BLUETOOTH
88 BCE_CLUTTERFLOW
89 BCE_COVERWALLPAPER
90 BCE_DUPLICATESONGDETECTOR
91 BCE_FOLDERSYNC
92 BCE_FANART
93 BCE_JAMENDO
94 BCE_LASTFMFINGERPRINT
95 BCE_LCD
96 BCE_LIRC
97 BCE_LIVERADIO
98 BCE_LYRICS
99 BCE_MAGNATUNE
100 BCE_MIRAGE
101 BCE_ONLINEMETADATAFIXER
102 BCE_OPENVP
103 BCE_RADIOSTATIONFETCHER
104 BCE_RANDOMBYLASTFM
105 BCE_SONGKICK
106 BCE_SONGKICKGEOLOCATION
107 BCE_STREAMRECORDER
108 BCE_KARAOKE
109 BCE_TELEPATHY
110 BCE_ZEITGEISTDP
111
112 AC_ARG_WITH(vendor-build-id,
113         AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
114                 [Set a vendor build ID, recommended for packagers]),
115         [vendor_build_id="$withval"], [
116                 test -d .git \
117                         && vendor_build_id="git-checkout" \
118                         || vendor_build_id="source-tarball"
119         ])
120 BUILD_VENDOR_ID="$vendor_build_id"
121 BUILD_HOST_OS="$host_os"
122 BUILD_HOST_CPU="$host_cpu"
123 BUILD_TIME=`date +"%F %T %Z"`
124 AC_SUBST(BUILD_VENDOR_ID)
125 AC_SUBST(BUILD_HOST_OS)
126 AC_SUBST(BUILD_HOST_CPU)
127 AC_SUBST(BUILD_TIME)
128
129 SHAVE_INIT([build/m4/shave], [enable])
130
131 dnl generated files
132 AC_OUTPUT([
133 Makefile
134
135 build/Makefile
136 build/m4/Makefile
137 build/m4/shave/shave
138 build/m4/shave/shave-libtool
139
140 help/Makefile
141
142 po/Makefile.in
143
144 src/Makefile
145 src/AssemblyInfo.cs
146
147 src/AlarmClock/Makefile
148 src/AlbumArtWriter/Makefile
149 src/Ampache/Makefile
150 src/AndroidRemote/Makefile
151 src/AppIndicator/Makefile
152 src/ArtistListCovers/Makefile
153 src/Awn/Makefile
154 src/Bluetooth/Makefile
155 src/CacheService/Makefile
156 src/ClutterFlow/Makefile
157 src/ClutterFlow/Banshee.ClutterFlow/Makefile
158 src/ClutterFlow/ClutterFlow/Makefile
159 src/CoverWallpaper/Makefile
160 src/CueSheets/Makefile
161 src/DuplicateSongDetector/Makefile
162 src/FanArt/Makefile
163 src/FolderSync/Makefile
164 src/Jamendo/Makefile
165 src/Karaoke/Makefile
166 src/LastfmFingerprint/Makefile
167 src/LastfmFingerprint/Banshee.LastfmFingerprint/Makefile
168 src/LastfmFingerprint/liblastfmfpbridge/Makefile
169 src/LCD/Makefile
170 src/Lirc/Makefile
171 src/Lirc/lirc-glue/Makefile
172 src/Lirc/Banshee.Lirc/Makefile
173 src/Lirc/GUITestHarness/Makefile
174 src/Lirc/NUnitTests/Makefile
175 src/LiveRadio/Makefile
176 src/Lyrics/Makefile
177 src/OnlineMetadataFixer/Makefile
178 src/OpenVP/Makefile
179 src/OpenVP/Cdh.Affe/Makefile
180 src/OpenVP/Cdh.Affe.Tests/Makefile
181 src/OpenVP/OpenVP/Makefile
182 src/OpenVP/OpenVP.Core/Makefile
183 src/OpenVP/OpenVP.Scripting/Makefile
184 src/OpenVP/Banshee.OpenVP/Makefile
185 src/OpenVP/Banshee.OpenVP.Visualizations/Makefile
186 src/Magnatune/Makefile
187 src/Mirage/Makefile
188 src/Mirage/libmirageaudio/Makefile
189 src/Mirage/Mirage/Makefile
190 src/Mirage/Banshee.Mirage/Makefile
191 src/Mirage/Test/Makefile
192 src/RadioStationFetcher/Makefile
193 src/RandomByLastfm/Makefile
194 src/SongKick/Makefile
195 src/SongKickGeoLocation/Makefile
196 src/StreamRecorder/Makefile
197 src/Telepathy/Makefile
198 src/Telepathy/Banshee.Telepathy/Makefile
199 src/ZeitgeistDataprovider/Makefile
200 ])
201
202 cat <<EOF
203
204 ${PACKAGE}-${VERSION}
205
206   Build Environment
207     Install Prefix:      ${prefix}
208     Datadir:             ${expanded_datadir}
209     Libdir:              ${expanded_libdir}
210     Extensions libdir:   ${expanded_extensionsdir}
211
212     C Compiler:          ${CC}
213     Mono C# Compiler:    ${MCS} ${GMCS_FLAGS}
214     Mono Runtime:        ${MONO}
215
216   Build/Development:
217     Release Build:       ${enable_release}
218     Vendor Build ID:     ${vendor_build_id}
219     Unit Tests:          ${enable_tests} (requires nunit >= ${NUNIT_REQUIRED}, --enable-tests)
220     User Help:           ${enable_user_help} (requires gnome-doc-utils >= 0.17.3)
221
222   Extensions:
223     Alarm Clock:           ${enable_AlarmClock}
224     AlbumArtWriter:        ${enable_AlbumArtWriter}
225     Ampache:               ${enable_Ampache}
226     AndroidRemote:         ${enable_AndroidRemote}
227     AppIndicator:          ${enable_AppIndicator}
228     ArtistListCovers:      ${enable_ArtistListCovers}
229     Awn:                   ${enable_Awn}
230     Bluetooth:             ${enable_Bluetooth}
231     ClutterFlow:           ${enable_ClutterFlow}
232     CoverWallpaper:        ${enable_CoverWallpaper}
233     CueSheets:             no
234     DuplicateSongDetector: ${enable_DuplicateSongDetector}
235     FanArt:                ${enable_FanArt}
236     FolderSync:            ${enable_FolderSync}
237     Jamendo:               ${enable_Jamendo}
238     Karaoke:               ${enable_Karaoke}
239     LastfmFingerprint:     ${enable_LastfmFingerprint}
240     LCD:                   ${enable_LCD}
241     Lirc:                  ${enable_Lirc}
242     LiveRadio:             ${enable_LiveRadio}
243     Lyrics:                ${enable_Lyrics}
244     Magnatune:             ${enable_Magnatune}
245     Mirage:                ${enable_Mirage}
246     OnlineMetadataFixer:   ${enable_OnlineMetadataFixer}
247     OpenVP:                ${enable_OpenVP}
248     RadioStationFetcher:   ${enable_RadioStationFetcher}
249     RandomByLastfm:        ${enable_RandomByLastfm}
250     SongKick:              ${enable_Songkick}
251     SongKickGeoLocation:   ${enable_SongKickGeoLocation}
252     StreamRecorder:        ${enable_StreamRecorder}
253     Telepathy:             ${enable_Telepathy}
254     ZeitgeistDataprovider: ${enable_ZeitgeistDataprovider}
255
256 EOF