summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 7c882ce29e57a0211e6d8b3806ec850c76837006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
AC_PREREQ(2.52)
AC_INIT([banshee-community-extensions], 2.4.0,
	[http://bugzilla.gnome.org/enter_bug.cgi?product=banshee&component=Community%20Extensions])

AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar dist-zip foreign])
AM_MAINTAINER_MODE([enable])
AM_CONFIG_HEADER([config.h])

IT_PROG_INTLTOOL([0.35.0])
AC_PROG_LIBTOOL
AC_PROG_INSTALL

dnl How to configure for distcheck
DISTCHECK_CONFIGURE_FLAGS="--enable-release"
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)

dnl Expansions
SHAMROCK_EXPAND_LIBDIR
SHAMROCK_EXPAND_BINDIR
SHAMROCK_EXPAND_DATADIR

dnl User help
SHAMROCK_CHECK_GNOME_DOC_UTILS(0.17.3)

dnl Mono and gmcs
SHAMROCK_CHECK_MONO_MODULE(1.9.1)
SHAMROCK_FIND_MONO_3_0_COMPILER
SHAMROCK_FIND_MONO_RUNTIME

dnl Banshee deps
PKG_CHECK_MODULES(BANSHEE, banshee-thickclient >= 2.4.0)
AC_SUBST(BANSHEE_LIBS)

dnl Banshee Extensions Path
BCE_FIND_BANSHEE

dnl For native/glue libraries
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CXX
AC_HEADER_STDC

dnl GNOME (optional)
AC_ARG_ENABLE(gnome, 
	AC_HELP_STRING([--disable-gnome], 
		[Disable GNOME support]), 
	, enable_gnome="yes")
if test "x$enable_gnome" = "xyes"; then
	AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
	AM_GCONF_SOURCE_2
	AM_CONDITIONAL(ENABLE_GNOME, true)
else
	AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, false)
	AM_CONDITIONAL(ENABLE_GNOME, false)
fi

dnl i18n
SHAMROCK_CONFIGURE_I18N($PACKAGE)

dnl Release
AC_ARG_ENABLE(release,
	AC_HELP_STRING([--enable-release],
		[Use release configuration]),
	enable_release=yes, enable_release=`(test ! -d .svn && test ! -d .git) && echo "yes" || echo "no"`)
AM_CONDITIONAL(ENABLE_RELEASE, test "x$enable_release" = "xyes")
ENABLE_RELEASE=$enable_release
AC_SUBST(ENABLE_RELEASE)
if test "x$enable_release" = "xyes"; then
	GMCS_FLAGS="-define:RELEASE"
else
	GMCS_FLAGS="-warnaserror"
fi
AC_SUBST(GMCS_FLAGS)

dnl Unit Tests (optional)
SHAMROCK_CHECK_UNIT_TESTS

dnl Extensions
BCE_ALARMCLOCK
BCE_ALBUMARTWRITER
BCE_AMPACHE
BCE_APPINDICATOR
BCE_AWN
BCE_CLUTTERFLOW
BCE_COVERWALLPAPER
BCE_DUPLICATESONGDETECTOR
BCE_FOLDERSYNC
BCE_JAMENDO
BCE_LASTFMFINGERPRINT
BCE_LCD
BCE_LIRC
BCE_LIVERADIO
BCE_LYRICS
BCE_MAGNATUNE
BCE_MIRAGE
BCE_OPENVP
BCE_RADIOSTATIONFETCHER
BCE_RANDOMBYLASTFM
BCE_STREAMRECORDER
BCE_KARAOKE
BCE_TELEPATHY
BCE_ZEITGEISTDP

AC_ARG_WITH(vendor-build-id,
	AC_HELP_STRING([--with-vendor-build-id=<vendor-build-id>],
		[Set a vendor build ID, recommended for packagers]),
	[vendor_build_id="$withval"], [
		test -d .git \
			&& vendor_build_id="git-checkout" \
			|| vendor_build_id="source-tarball"
	])
BUILD_VENDOR_ID="$vendor_build_id"
BUILD_HOST_OS="$host_os"
BUILD_HOST_CPU="$host_cpu"
BUILD_TIME=`date +"%F %T %Z"`
AC_SUBST(BUILD_VENDOR_ID)
AC_SUBST(BUILD_HOST_OS)
AC_SUBST(BUILD_HOST_CPU)
AC_SUBST(BUILD_TIME)

SHAVE_INIT([build/m4/shave], [enable])

dnl generated files
AC_OUTPUT([
Makefile

build/Makefile
build/m4/Makefile
build/m4/shave/shave
build/m4/shave/shave-libtool

help/Makefile

po/Makefile.in

src/Makefile
src/CueSheets/Makefile
src/AssemblyInfo.cs

src/AlarmClock/Makefile
src/AlbumArtWriter/Makefile
src/Ampache/Makefile
src/AppIndicator/Makefile
src/Awn/Makefile
src/ClutterFlow/Makefile
src/ClutterFlow/Banshee.ClutterFlow/Makefile
src/ClutterFlow/ClutterFlow/Makefile
src/CoverWallpaper/Makefile
src/DuplicateSongDetector/Makefile
src/FolderSync/Makefile
src/Jamendo/Makefile
src/Karaoke/Makefile
src/LastfmFingerprint/Makefile
src/LastfmFingerprint/Banshee.LastfmFingerprint/Makefile
src/LastfmFingerprint/liblastfmfpbridge/Makefile
src/LCD/Makefile
src/Lirc/Makefile
src/Lirc/lirc-glue/Makefile
src/Lirc/Banshee.Lirc/Makefile
src/Lirc/GUITestHarness/Makefile
src/Lirc/NUnitTests/Makefile
src/LiveRadio/Makefile
src/Lyrics/Makefile
src/OpenVP/Makefile
src/OpenVP/Cdh.Affe/Makefile
src/OpenVP/Cdh.Affe.Tests/Makefile
src/OpenVP/OpenVP/Makefile
src/OpenVP/OpenVP.Core/Makefile
src/OpenVP/OpenVP.Scripting/Makefile
src/OpenVP/Banshee.OpenVP/Makefile
src/OpenVP/Banshee.OpenVP.Visualizations/Makefile
src/Magnatune/Makefile
src/Mirage/Makefile
src/Mirage/libmirageaudio/Makefile
src/Mirage/Mirage/Makefile
src/Mirage/Banshee.Mirage/Makefile
src/Mirage/Test/Makefile
src/RadioStationFetcher/Makefile
src/RandomByLastfm/Makefile
src/StreamRecorder/Makefile
src/Telepathy/Makefile
src/Telepathy/Banshee.Telepathy/Makefile
src/ZeitgeistDataprovider/Makefile
])

cat <<EOF

${PACKAGE}-${VERSION}

  Build Environment
    Install Prefix:      ${prefix}
    Datadir:             ${expanded_datadir}
    Libdir:              ${expanded_libdir}
    Extensions libdir:   ${expanded_extensionsdir}

    C Compiler:          ${CC}
    Mono C# Compiler:    ${MCS} ${GMCS_FLAGS}
    Mono Runtime:        ${MONO}

  Build/Development:
    Release Build:       ${enable_release}
    Vendor Build ID:     ${vendor_build_id}
    Unit Tests:          ${enable_tests} (requires nunit >= ${NUNIT_REQUIRED}, --enable-tests)
    User Help:           ${enable_user_help} (requires gnome-doc-utils >= 0.17.3)

  Extensions:
    CueSheets:           yes
    Alarm Clock:           ${enable_AlarmClock}
    AlbumArtWriter:        ${enable_AlbumArtWriter}
    Ampache:               ${enable_Ampache}
    AppIndicator:          ${enable_AppIndicator}
    Awn:                   ${enable_Awn}
    ClutterFlow:           ${enable_ClutterFlow}
    CoverWallpaper:        ${enable_CoverWallpaper}
    DuplicateSongDetector: ${enable_DuplicateSongDetector}
    FolderSync:            ${enable_FolderSync}
    Jamendo:               ${enable_Jamendo}
    Karaoke:               ${enable_Karaoke}
    LastfmFingerprint:     ${enable_LastfmFingerprint}
    LCD:                   ${enable_LCD}
    Lirc:                  ${enable_Lirc}
    LiveRadio:             ${enable_LiveRadio}
    Lyrics:                ${enable_Lyrics}
    Magnatune:             ${enable_Magnatune}
    Mirage:                ${enable_Mirage}
    OpenVP:                ${enable_OpenVP}
    RadioStationFetcher:   ${enable_RadioStationFetcher}
    RandomByLastfm:        ${enable_RandomByLastfm}
    StreamRecorder:        ${enable_StreamRecorder}
    Telepathy:             ${enable_Telepathy}
    ZeitgeistDataprovider: ${enable_ZeitgeistDataprovider}

EOF