Mercurial > audlegacy
annotate configure.ac @ 807:df3412dc33c4 trunk
[svn] - add psuedo_output_plugin, a psuedo output plugin that will be used for reverse compatibility with old plugins.
sort of.
author | nenolod |
---|---|
date | Wed, 08 Mar 2006 06:57:02 -0800 |
parents | 0892e7d48925 |
children | e9509e909193 |
rev | line source |
---|---|
0 | 1 dnl Process this file with autoconf to produce a configure script. |
2 | |
794 | 3 AC_INIT(audacious, 0.2.2) |
0 | 4 AC_PREREQ(2.5) |
5 | |
6 AC_CANONICAL_HOST | |
7 AC_CANONICAL_TARGET | |
8 | |
9 AC_CONFIG_HEADERS([config.h]) | |
10 | |
11 dnl libbeep | |
12 LIBBEEP_MAJOR_VERSION=2 | |
13 LIBBEEP_MINOR_VERSION=0 | |
14 LIBBEEP_MICRO_VERSION=0 | |
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION | |
16 AC_SUBST(LIBBEEP_MAJOR_VERSION) | |
17 AC_SUBST(LIBBEEP_MINOR_VERSION) | |
18 AC_SUBST(LIBBEEP_MICRO_VERSION) | |
19 | |
38 | 20 dnl XXX kludge for FreeBSD |
21 if test -d "/usr/X11R6/include"; then | |
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" | |
23 fi | |
0 | 24 |
756 | 25 AM_INIT_AUTOMAKE |
26 | |
0 | 27 dnl GNU gettext |
28 | |
29 AM_GNU_GETTEXT | |
30 AM_GNU_GETTEXT_VERSION([0.12.1]) | |
31 | |
32 | |
33 dnl Check for C compiler | |
34 | |
35 AC_LANG([C]) | |
2 | 36 AC_LANG([C++]) |
0 | 37 AC_ISC_POSIX |
38 AC_C_BIGENDIAN | |
39 | |
40 dnl Check for assembler | |
41 | |
42 AM_PROG_AS | |
43 | |
44 dnl Checks for various programs | |
45 | |
46 AC_PROG_INSTALL | |
47 AC_PROG_LN_S | |
48 AC_PROG_MAKE_SET | |
49 | |
750 | 50 AC_PATH_PROG(RM, rm) |
51 AC_PATH_PROG(MV, mv) | |
52 AC_PATH_PROG(CP, cp) | |
53 AC_PATH_PROG(AR, ar) | |
54 AC_PATH_PROG(RANLIB, ranlib) | |
55 | |
0 | 56 dnl Path settings |
57 | |
58 AC_PATH_PROG(BEEP_PATH, audacious, no) | |
59 | |
60 AC_ARG_WITH(rc-path, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
61 [ --rc-path=path Resource and configuration path for audacious relative to $HOME.], |
0 | 62 [rc_path=$withval], |
63 [rc_path=.audacious] | |
64 ) | |
65 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path", | |
535 | 66 [Resource and configuration path for audacious relative to $HOME.] |
0 | 67 ) |
68 AC_SUBST(BMP_RCPATH) | |
69 | |
70 AC_ARG_ENABLE(one-plugin-dir, | |
71 [ --enable-one-plugin-dir Use a single plugin dir [default=no]], | |
72 [enable_one_plugin_dir=$enableval], | |
73 [enable_one_plugin_dir=no] | |
74 ) | |
75 | |
76 AC_ARG_ENABLE(user-plugin-dir, | |
77 [ --disable-user-plugin-dir disable per-user plugin dir], | |
78 [enable_user_plugin_dir=$enableval], | |
79 [enable_user_plugin_dir=yes] | |
80 ) | |
81 | |
82 AC_ARG_WITH(dev-dsp, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
83 [ --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.], |
0 | 84 [dev_dsp=$withval], |
85 [dev_dsp=/dev/dsp] | |
86 ) | |
87 AC_DEFINE_UNQUOTED(DEV_DSP, "$dev_dsp", | |
88 [Path to OSS DSP, really just a data pipe, default is /dev/dsp.] | |
89 ) | |
90 | |
91 AC_ARG_WITH(dev-mixer, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
92 [ --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.], |
0 | 93 [dev_mixer=$withval], |
94 [dev_mixer=/dev/mixer] | |
95 ) | |
96 AC_DEFINE_UNQUOTED(DEV_MIXER, "$dev_mixer", | |
97 [Path to OSS mixer, default is /dev/mixer.] | |
98 ) | |
99 | |
100 AC_ARG_WITH(cdda-device, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
101 [ --with-cdda-device=path Path to default cdaudio device.], |
0 | 102 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval", |
103 [Path to default cdaudio device.] | |
104 ) | |
105 ] | |
106 ) | |
107 | |
108 AC_ARG_WITH(cdda-dir, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
109 [ --with-cdda-dir=path Path to default cdaudio directory.], |
0 | 110 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval", |
111 [Path to default cdaudio directory.] | |
112 ) | |
113 ] | |
114 ) | |
115 | |
634 | 116 dnl These plugins are always built. |
0 | 117 |
634 | 118 INPUT_PLUGINS="cdaudio tonegen console sexypsf wav" |
119 EFFECT_PLUGINS="ladspa" | |
710
500f6d54bc46
[svn] Remove references to inetctl from the build system.
chainsaw
parents:
706
diff
changeset
|
120 GENERAL_PLUGINS="song_change" |
634 | 121 VISUALIZATION_PLUGINS="blur_scope" |
0 | 122 |
123 dnl Option to change equalizer to the old XMMS one which only works with the mpg123 | |
124 dnl plugin (or rather, only implemented within the plugin) | |
125 | |
126 AC_ARG_WITH(xmms-eq, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
127 [ --with-xmms-eq Use old XMMS equalization code.], |
0 | 128 [use_xmms_eq=$withval], |
129 [use_xmms_eq=no] | |
130 ) | |
131 | |
132 if test "$use_xmms_eq" = "yes"; then | |
133 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.]) | |
134 fi | |
135 | |
136 dnl Check for GTK/GLib/GThread/Pango | |
137 | |
535 | 138 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango], |
139 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])], | |
0 | 140 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])] |
141 ) | |
142 | |
143 dnl Check for libglade | |
144 | |
145 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1], | |
146 [], | |
147 [AC_MSG_ERROR([Cannot find libglade])] | |
148 ) | |
149 | |
150 # Check if socklen_t is defined | |
151 | |
152 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t, | |
153 [AC_TRY_COMPILE( | |
154 [#include <sys/types.h> | |
155 #include <sys/socket.h>], | |
156 [socklen_t s;], | |
157 [beep_cv_type_socklen_t=yes], | |
158 [beep_cv_type_socklen_t=no] | |
159 ) | |
160 ] | |
161 ) | |
162 | |
163 if test "$beep_cv_type_socklen_t" = "no"; then | |
164 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing]) | |
165 fi | |
166 | |
167 | |
168 dnl GConf support | |
169 | |
170 AC_ARG_ENABLE( gconf, | |
171 [ --enable-gconf enable GConf support (default=disabled)], | |
172 [enable_gconf=$enableval], | |
173 [enable_gconf="no"] | |
174 ) | |
175 | |
176 if test "$enable_gconf" = "yes"; then | |
177 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0], | |
178 [ | |
179 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support]) | |
180 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0]) | |
181 ], | |
182 [AC_MSG_ERROR([Cannot find GConf])] | |
183 ) | |
184 fi | |
185 | |
727 | 186 if test "$enable_gconf" = "yes"; then |
187 CONFIGDB_BACKEND="gconf" | |
188 else | |
189 CONFIGDB_BACKEND="rcfile" | |
190 fi | |
0 | 191 |
727 | 192 AC_SUBST(CONFIGDB_BACKEND) |
0 | 193 |
194 dnl GnomeVFS support | |
195 | |
196 AC_ARG_ENABLE( gnome-vfs, | |
197 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)], | |
198 [enable_gnomevfs=$enableval], | |
199 [enable_gnomevfs="no"] | |
200 ) | |
201 | |
202 if test "$enable_gnomevfs" = "yes"; then | |
203 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0], | |
204 [ | |
205 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support]) | |
206 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0]) | |
207 ], | |
208 [AC_MSG_ERROR([Cannot find GnomeVFS])] | |
209 ) | |
210 fi | |
211 | |
726 | 212 if test "$enable_gnomevfs" = "yes"; then |
213 VFS_BACKEND="gnome" | |
214 else | |
215 VFS_BACKEND="stdio" | |
216 fi | |
0 | 217 |
727 | 218 AC_SUBST(VFS_BACKEND) |
219 | |
0 | 220 dnl Check for esound |
221 | |
222 AC_ARG_ENABLE( esd, | |
223 [ --disable-esd disable esound output plugin [default=enabled]], | |
224 [enable_esd=$enableval], | |
225 [enable_esd="yes"] | |
226 ) | |
227 | |
228 if test "$enable_esd" = "yes"; then | |
229 PKG_CHECK_MODULES(ESD, [esound >= 0.2], | |
634 | 230 [have_esd=yes |
231 OUTPUT_PLUGINS="$OUTPUT_PLUGINS esd"], | |
0 | 232 [have_esd=no] |
233 ) | |
234 else | |
235 AC_MSG_RESULT([*** esound plugin disabled per user request ***]) | |
236 have_esd=no | |
237 fi | |
238 | |
239 dnl *** MP3 | |
240 | |
241 AC_ARG_ENABLE(mp3, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
242 [ --disable-mp3 disable mp3 plugin. (default=enabled) ], |
0 | 243 [enable_mp3=$enableval], |
244 [enable_mp3=yes] | |
245 ) | |
246 | |
634 | 247 if test "$enable_mp3" = "yes"; then |
248 INPUT_PLUGINS="$INPUT_PLUGINS mpg123" | |
249 fi | |
0 | 250 |
251 dnl *** id3lib | |
252 dnl only makes sence if mp3's enabled | |
253 if test "x$enable_mp3" = "xyes" ; then | |
254 | |
255 ID3LIBS="" | |
256 have_id3lib="no" | |
257 | |
258 dnl here we assume that if libz isn't installed but id3lib is | |
259 dnl it's compiled without compression support | |
260 AC_CHECK_HEADERS([id3.h],[ | |
261 AC_CHECK_LIB([z],[compress],[ZLIB='-lz'],[ZLIB='']) | |
262 AC_CHECK_LIB([id3],[ID3Tag_New], | |
263 [have_id3lib=yes | |
264 AC_DEFINE(HAVE_ID3LIB,,[Define when using id3lib]) | |
265 ID3LIBS="-lstdc++ $ZLIB -lid3"],,[-lstdc++ $ZLIB])]) | |
266 | |
267 AC_SUBST(ID3LIBS) | |
268 | |
269 fi dnl $enable_mp3 = yes | |
270 | |
157 | 271 dnl *** LIRC client libraries |
272 | |
273 AC_ARG_ENABLE(lirc, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
274 [ --disable-lirc disable LIRC plugin (default=enabled)], |
157 | 275 [enable_lirc=$enableval], |
276 [enable_lirc="yes"] | |
277 ) | |
278 | |
279 if test "$enable_lirc" = "yes"; then | |
280 AC_CHECK_LIB([lirc_client],[lirc_init],[have_lirc=yes],[have_lirc=no]) | |
281 else | |
282 AC_MSG_RESULT([*** LIRC plugin disabled per user request ***]) | |
283 have_lirc="no" | |
284 fi | |
634 | 285 |
286 if test "$have_lirc" = "yes"; then | |
287 GENERAL_PLUGINS="$GENERAL_PLUGINS lirc" | |
288 fi | |
157 | 289 |
386 | 290 dnl *** AdPlug requirement (libbinio) |
359 | 291 |
292 AC_ARG_ENABLE(adplug, | |
293 [ --disable-adplug disable AdPlug plugin (default=enabled)], | |
294 [enable_adplug=$enableval], | |
295 [enable_adplug="yes"] | |
296 ) | |
297 | |
386 | 298 if test "$enable_adplug" = "yes"; then |
406
5928c035fa4e
[svn] Use the pkg-config database to link with libbinio in a portable way. Requires libbinio 1.4 (or higher).
chainsaw
parents:
393
diff
changeset
|
299 have_adplug="yes" |
5928c035fa4e
[svn] Use the pkg-config database to link with libbinio in a portable way. Requires libbinio 1.4 (or higher).
chainsaw
parents:
393
diff
changeset
|
300 PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no]) |
359 | 301 else |
302 AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***]) | |
303 have_adplug="no" | |
304 fi | |
634 | 305 |
306 if test "$have_adplug" = "yes"; then | |
307 INPUT_PLUGINS="$INPUT_PLUGINS adplug" | |
308 fi | |
359 | 309 |
0 | 310 dnl *** Ogg Vorbis |
311 | |
312 AC_ARG_ENABLE(vorbis, | |
313 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)], | |
314 [enable_vorbis=$enableval], | |
315 [enable_vorbis="yes"] | |
316 ) | |
317 | |
318 if test "$enable_vorbis" = "yes"; then | |
319 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0], | |
320 [have_oggvorbis=yes], | |
321 [AC_MSG_ERROR([Cannot find libogg/libvorbis]) | |
322 have_oggvorbis=no] | |
323 ) | |
324 else | |
325 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***]) | |
326 have_oggvorbis=no | |
327 fi | |
328 | |
634 | 329 if test "$have_oggvorbis" = "yes"; then |
330 INPUT_PLUGINS="$INPUT_PLUGINS vorbis" | |
331 fi | |
0 | 332 |
2 | 333 dnl *** AAC |
334 | |
335 AC_ARG_ENABLE(aac, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
336 [ --disable-aac disable aac plugin (default=enabled) ], |
2 | 337 [enable_aac=$enableval], |
338 [enable_aac=yes] | |
339 ) | |
340 | |
706 | 341 if test "$enable_aac" = "yes"; then |
634 | 342 INPUT_PLUGINS="$INPUT_PLUGINS aac" |
343 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
344 |
165 | 345 dnl *** sndfile |
346 | |
347 AC_ARG_ENABLE(sndfile, | |
348 [ --disable-sndfile disable sndfile extensions. [default=enabled] ], | |
349 [enable_sndfile=$enableval], | |
350 [enable_sndfile=yes] | |
351 ) | |
352 | |
353 if test "$enable_sndfile" = "yes"; then | |
354 PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19], | |
355 [enable_sndfile=yes], | |
356 [enable_sndfile=no] | |
357 ) | |
358 else | |
359 AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***]) | |
360 enable_sndfile=no | |
361 fi | |
362 | |
634 | 363 if test "$enable_sndfile" = "yes"; then |
725 | 364 WAV_SNDFILE="-sndfile" |
634 | 365 fi |
366 | |
725 | 367 AC_SUBST(WAV_SNDFILE) |
165 | 368 |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
369 dnl *** modplug |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
370 |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
371 AC_ARG_ENABLE(modplug, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
372 [ --disable-modplug disable ModPlug plugin (default=enabled)], |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
373 [enable_modplug=$enableval], |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
374 [enable_modplug="yes"] |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
375 ) |
32 | 376 |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
377 if test "$enable_modplug" = "yes"; then |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
378 AC_CHECK_LIB([modplug],[XMLinearTable],[have_modplug=yes],[have_modplug=no]) |
32 | 379 else |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
380 AC_MSG_RESULT([*** ModPlug plugin disabled per user request ***]) |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
381 have_modplug="no" |
32 | 382 fi |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
383 |
634 | 384 if test "$have_modplug" = "yes"; then |
385 INPUT_PLUGINS="$INPUT_PLUGINS modplug" | |
386 fi | |
32 | 387 |
50 | 388 dnl *** flac |
389 AC_ARG_ENABLE( flc, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
390 [ --disable-flac disable flac input plugin (default=enabled)],, |
50 | 391 enable_flac="yes") |
392 | |
393 if test "x$enable_flac" = xyes; then | |
394 AM_PATH_LIBFLAC(have_flac=yes, have_flac=no) | |
395 else | |
396 AC_MSG_RESULT([*** flac plugin disabled per user request ***]) | |
397 have_flac=no | |
398 fi | |
634 | 399 |
400 if test "$have_flac" = "yes"; then | |
401 INPUT_PLUGINS="$INPUT_PLUGINS flac" | |
402 fi | |
32 | 403 |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
404 dnl *** WMA |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
405 |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
406 AC_ARG_ENABLE(wma, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
407 [ --disable-wma disable wma plugin. (default=enabled)], |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
408 [enable_wma=$enableval], |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
409 [enable_wma=yes] |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
410 ) |
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
411 |
634 | 412 if test "$enable_wma" = "yes"; then |
413 INPUT_PLUGINS="$INPUT_PLUGINS wma" | |
414 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
415 |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
416 dnl *** jack output plugin |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
417 AC_ARG_ENABLE( jack, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
418 [ --disable-jack disable jack output plugin (default=enabled)],, |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
419 enable_jack="yes") |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
420 |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
421 if test "x$enable_jack" = xyes; then |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
422 AM_PATH_JACK(have_jack=yes, have_jack=no) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
423 else |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
424 AC_MSG_RESULT([*** jack plugin disabled per user request ***]) |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
425 have_jack=no |
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
426 fi |
634 | 427 |
428 if test "$have_jack" = yes; then | |
429 OUTPUT_PLUGINS="$OUTPUT_PLUGINS jack" | |
430 fi | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
431 |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
432 dnl *** sid |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
433 AC_ARG_ENABLE( sid, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
434 [ --disable-sid disable sid input plugin (default=enabled)],, |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
435 enable_sid="yes") |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
436 |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
437 if test "x$enable_sid" = xyes; then |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
438 AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
439 else |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
440 AC_MSG_RESULT([*** sid plugin disabled per user request ***]) |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
441 have_sidplay=no |
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
442 fi |
634 | 443 |
444 if test "$have_sidplay" = yes; then | |
445 INPUT_PLUGINS="$INPUT_PLUGINS sid" | |
446 fi | |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
447 |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
448 dnl *** Musepack |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
449 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
450 AC_ARG_ENABLE(musepack, |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
451 [ --disable-musepack disable musepack input plugin (default=enabled)], |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
452 [enable_musepack=$enableval], |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
453 [enable_musepack="yes"] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
454 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
455 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
456 if test "$enable_musepack" = "yes"; then |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
457 AC_CHECK_HEADERS(mpcdec/config_types.h,, |
319
1e642d74d68c
[svn] Do not abort if libmpc is not found, just disable musepack plugin.
chainsaw
parents:
293
diff
changeset
|
458 enable_musepack=no |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
459 ) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
460 |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
461 AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, [no], [$PATH:$prefix/bin]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
462 if test "x$TAGLIB_CONFIG" = "xno" ; then |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
463 enable_musepack=no |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
464 else |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
465 TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
466 TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`] |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
467 fi |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
468 AC_SUBST(TAGLIB_CFLAGS) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
469 AC_SUBST(TAGLIB_LIBS) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
470 else |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
471 AC_MSG_RESULT([*** Musepack plugin disabled per user request ***]) |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
472 enable_musepack=no |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
473 fi |
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
474 |
634 | 475 if test "$enable_musepack" = "yes"; then |
476 INPUT_PLUGINS="$INPUT_PLUGINS musepack" | |
477 fi | |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
478 |
0 | 479 dnl *** OSS output |
480 | |
481 AC_ARG_ENABLE(oss, | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
482 [ --disable-oss disable the OSS output plugin (default=enabled)], |
0 | 483 [have_oss=$enableval], |
484 [have_oss=yes] | |
485 ) | |
486 | |
487 if test "$have_oss" = "yes"; then | |
488 AC_MSG_CHECKING(for OSS include dir) | |
489 OSS_CFLAGS="" | |
490 if test -f "/etc/oss.conf" ; then | |
491 for i in `cat /etc/oss.conf`; do | |
492 t=`echo $i | sed -e 's/OSSLIBDIR=//'` | |
493 if test "$i" != "$t" ; then | |
494 if test -f "$t/include/sys/soundcard.h" ; then | |
495 OSS_CFLAGS="-I$t/include" | |
496 fi | |
497 fi | |
498 done | |
499 fi | |
500 if test -n "$OSS_CFLAGS" ; then | |
501 AC_MSG_RESULT([$OSS_CFLAGS]) | |
502 else | |
503 AC_MSG_RESULT([not found]) | |
504 fi | |
505 CFLAGS_save=$CFLAGS | |
506 CFLAGS="$CFLAGS $OSS_CFLAGS" | |
507 AC_CHECK_HEADERS(sys/soundcard.h) | |
508 AC_CHECK_HEADERS(machine/soundcard.h) | |
509 CFLAGS=$CFLAGS_save | |
510 | |
511 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then | |
512 have_oss=yes | |
513 fi | |
514 fi | |
515 | |
516 if test "$have_oss" = "yes"; then | |
517 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built]) | |
518 else | |
519 have_oss=no | |
520 fi | |
521 | |
634 | 522 if test "$have_oss" = "yes"; then |
523 OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS" | |
524 fi | |
0 | 525 |
526 dnl *** ALSA output plugin | |
527 | |
528 AC_ARG_ENABLE(alsa, | |
529 [ --disable-alsa disable ALSA input plugin (default=enabled)], | |
530 [enable_alsa=$enableval], | |
531 [enable_alsa=yes] | |
532 ) | |
533 | |
534 if test "$enable_alsa" = "yes"; then | |
535 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0], | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
536 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
537 have_alsa=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
538 alsalib_available=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
539 ], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
540 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
541 have_alsa=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
542 alsalib_available=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
543 ] |
0 | 544 ) |
545 else | |
546 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***]) | |
547 have_alsa=no | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
548 alsalib_available=check |
0 | 549 fi |
550 | |
635
6a9e1af8ee75
[svn] Check for have_alsa to enable ALSA, and not have_oss.
chainsaw
parents:
634
diff
changeset
|
551 if test "$have_alsa" = "yes"; then |
634 | 552 OUTPUT_PLUGINS="$OUTPUT_PLUGINS alsa" |
553 fi | |
0 | 554 |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
555 dnl *** amidi-plug (note: should appear somewhere after the alsa ouput plugin check) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
556 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
557 AC_ARG_ENABLE(amidiplug, |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
558 [ --disable-amidiplug disable amidi-plug input plugin (default=check) ], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
559 [enable_amidiplug=$enableval], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
560 [enable_amidiplug=check] |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
561 ) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
562 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
563 if test "x$enable_amidiplug" = "xno"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
564 AC_MSG_RESULT([*** amidi-plug disabled per user request ***]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
565 enable_amidiplug=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
566 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
567 if test "x$alsalib_available" = "xcheck"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
568 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
569 [alsalib_available=yes],[alsalib_available=no]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
570 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
571 if test "x$alsalib_available" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
572 if test "x$enable_amidiplug" = "xcheck"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
573 AM_PATH_AMIDIPLUG(enable_amidiplug=yes, enable_amidiplug=no) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
574 if test "x$enable_amidiplug" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
575 ap_disable_timidity=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
576 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
577 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
578 enable_amidiplug=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
579 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
580 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
581 AC_MSG_WARN([*** ALSA not found, amidi-plug won't be compiled ***]) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
582 enable_amidiplug=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
583 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
584 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
585 |
634 | 586 if test "$enable_amidiplug" = "yes"; then |
587 INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug" | |
588 fi | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
589 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
590 dnl *** TiMidity input plugin (note: should appear somewhere after the amidi-plug check) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
591 |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
592 AC_ARG_ENABLE(timidity, |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
593 [ --disable-timidity disable timidity plugin. (default=enabled)], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
594 [enable_timidity=$enableval], |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
595 [ |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
596 if test "x$ap_disable_timidity" = "xyes"; then |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
597 enable_timidity=no |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
598 else |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
599 enable_timidity=yes |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
600 fi |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
601 ] |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
602 ) |
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
603 |
634 | 604 if test "$enable_timidity" = "yes"; then |
605 INPUT_PLUGINS="$INPUT_PLUGINS timidity" | |
606 fi | |
527
68f20f7ac954
[svn] in configure.ac, do not check for ALSA twice if it has been already detected (both alsa output plugin and amidi-plug check its availability)
giacomo
parents:
523
diff
changeset
|
607 |
0 | 608 dnl FreeBSD newpcm driver detection |
609 | |
610 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver, | |
611 if test -r "/dev/sndstat"; then | |
612 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null | |
613 if test "x$?" = "x0"; then | |
614 beep_cv_newpcm_driver="yes" | |
615 else | |
616 beep_cv_newpcm_driver="no" | |
617 fi | |
618 else | |
619 beep_cv_newpcm_driver="no" | |
620 fi | |
621 ) | |
622 | |
623 if test "$beep_cv_newpcm_driver" = "yes"; then | |
624 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver]) | |
625 fi | |
626 | |
627 | |
628 AC_CHECK_HEADERS(linux/cdrom.h) | |
629 AC_CHECK_HEADERS(sys/cdio.h) | |
630 AC_CHECK_HEADERS(linux/joystick.h) | |
631 AC_CHECK_HEADERS(unistd.h) | |
632 AC_CHECK_HEADERS(fcntl.h) | |
633 AC_CHECK_HEADERS(sys/ioctl.h) | |
634 AC_CHECK_HEADERS(fnmatch.h) | |
635 AC_CHECK_HEADERS(limits.h) | |
636 AC_CHECK_HEADERS(wchar.h) | |
637 AC_CHECK_HEADERS(fts.h) | |
638 | |
242 | 639 AC_CHECK_FUNCS([mkdtemp getmntinfo strtoul lrintf]) |
0 | 640 |
641 | |
642 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes" | |
643 then | |
644 case "$host" in | |
645 *-*-sunos* | *-*-solaris* | *-*-linux*) | |
646 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style]) | |
647 ;; | |
648 *-*-freebsd*) | |
649 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
650 ;; | |
651 *-*-netbsd* | *-*-openbsd*) | |
652 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
653 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant]) | |
654 ;; | |
655 *-*darwin*) | |
656 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style]) | |
657 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant]) | |
658 ;; | |
659 esac | |
660 fi | |
661 | |
662 | |
663 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes") | |
664 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes") | |
665 | |
666 if test -n "$GCC" | |
667 then | |
703
d84e90a38980
[svn] Make GCC 4.1 a bit less talkative, patch by Flameeyes from Gentoo. Fixing the warnings is possible, but would require extensive changes throughout the entire codebase.
chainsaw
parents:
692
diff
changeset
|
668 CFLAGS="$CFLAGS -Wall -Wno-unused-parameter -Wpointer-arith -finline-functions -ffast-math" |
0 | 669 case "$CFLAGS" in |
670 -g*) ;; | |
671 *\ -g*) ;; | |
672 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;; | |
673 esac | |
674 case "$host" in | |
675 *-*-freebsd*) | |
676 ;; | |
677 *) | |
678 CFLAGS="$CFLAGS -funroll-all-loops" | |
679 ;; | |
680 esac | |
681 fi | |
682 | |
683 AC_MSG_CHECKING(if __ELF__ is defined) | |
684 AC_EGREP_CPP(yes, | |
685 [#ifdef __ELF__ | |
686 yes | |
687 #endif | |
688 ], | |
689 [is_elf=yes], | |
690 [is_elf=no] | |
691 ) | |
692 AC_MSG_RESULT([${is_elf}]) | |
693 | |
694 | |
695 have_solaris=no | |
696 have_sun=no | |
697 ARCH_DEFINES="" | |
698 case "$host" in | |
699 *-*-openbsd* | *-*-netbsd*) | |
700 have_sun=yes | |
701 if test "${is_elf}" = "no" | |
702 then | |
703 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
704 fi | |
758
f9e8807ea6e5
[svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents:
756
diff
changeset
|
705 OUTPUT_PLUGINS="$OUTPUT_PLUGINS sun" |
0 | 706 ;; |
707 *-*-darwin*) | |
708 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any]) | |
709 ;; | |
710 *-hpux-*) | |
711 ARCH_DEFINES="-DHPUX" | |
712 ;; | |
713 *-*-solaris* | *-*-sunos*) | |
714 have_solaris=yes | |
715 ;; | |
716 esac | |
717 | |
718 arch_type=other | |
719 x86_asm=no | |
720 case "$host" in | |
721 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*) | |
722 arch_type=ix86 | |
723 case "$host" in | |
724 *-*-netbsd* | *-*openbsd*) | |
725 ;; | |
726 *) | |
727 ARCH_DEFINES="-DI386_ASSEM" | |
728 x86_asm=yes | |
729 ;; | |
730 esac | |
731 ;; | |
732 esac | |
733 | |
688 | 734 dnl *** Scrobbler *** |
735 | |
736 scrobbler="yes" | |
737 | |
738 dnl Checks for libmusicbrainz | |
692 | 739 PKG_CHECK_MODULES(MUSICBRAINZ, [libmusicbrainz >= 2.0.0], , [scrobbler="no"]) |
688 | 740 |
741 dnl libcurl check | |
742 | |
743 my_cv_curl_vers=NONE | |
744 dnl check is the plain-text version of the required version | |
745 check="7.9.7" | |
746 dnl check_hex must be UPPERCASE if any hex letters are present | |
747 check_hex="070907" | |
748 | |
749 AC_MSG_CHECKING([for curl >= $check]) | |
750 | |
751 if eval curl-config --version 2>/dev/null >/dev/null; then | |
752 ver=`curl-config --version | sed -e "s/libcurl //g"` | |
753 hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'` | |
754 ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc` | |
755 | |
756 if test x$ok != x0; then | |
757 my_cv_curl_vers="$ver" | |
758 AC_MSG_RESULT([$my_cv_curl_vers]) | |
759 CURL_LIBS=`curl-config --libs` | |
760 CURL_CFLAGS=`curl-config --cflags` | |
761 else | |
762 AC_MSG_RESULT([no]) | |
763 AC_MSG_WARN([$ver is too old. Need version $check or higher. Scrobbler support will not be built.]) | |
764 fi | |
765 else | |
766 AC_MSG_RESULT([no]) | |
767 AC_MSG_WARN([curl-config was not found. Scrobbler support will not be built.]) | |
768 fi | |
769 | |
770 if test "x$scrobbler" = "xyes"; then | |
771 GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler" | |
772 fi | |
773 | |
774 AC_SUBST(CURL_CFLAGS) | |
775 AC_SUBST(CURL_LIBS) | |
776 AC_SUBST(MUSICBRAINZ_LIBS) | |
777 | |
778 dnl *** End of Scrobbler checks *** | |
0 | 779 |
780 AC_SUBST(ARCH_DEFINES) | |
781 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86") | |
782 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes) | |
783 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes) | |
784 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes) | |
785 | |
786 plugindir=$libdir/audacious | |
787 AC_SUBST(plugindir) | |
788 | |
789 if test "x$enable_one_plugin_dir" = "xyes"; then | |
790 pluginsubs="\\\"Plugins\\\"" | |
791 INPUT_PLUGIN_DIR=Plugins | |
792 OUTPUT_PLUGIN_DIR=Plugins | |
793 EFFECT_PLUGIN_DIR=Plugins | |
794 GENERAL_PLUGIN_DIR=Plugins | |
795 VISUALIZATION_PLUGIN_DIR=Plugins | |
796 else | |
797 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\"" | |
798 INPUT_PLUGIN_DIR=Input | |
799 OUTPUT_PLUGIN_DIR=Output | |
800 EFFECT_PLUGIN_DIR=Effect | |
801 GENERAL_PLUGIN_DIR=General | |
802 VISUALIZATION_PLUGIN_DIR=Visualization | |
803 fi | |
804 | |
805 AC_SUBST(INPUT_PLUGIN_DIR) | |
806 AC_SUBST(OUTPUT_PLUGIN_DIR) | |
807 AC_SUBST(EFFECT_PLUGIN_DIR) | |
808 AC_SUBST(GENERAL_PLUGIN_DIR) | |
809 AC_SUBST(VISUALIZATION_PLUGIN_DIR) | |
810 AC_SUBST(pluginsubs) | |
811 | |
812 localedir=$datadir/locale | |
813 AC_SUBST(localedir) | |
814 | |
815 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" | |
816 CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
817 | |
818 if test "$enable_user_plugin_dir" = "no"; then | |
819 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory]) | |
820 fi | |
821 | |
822 AC_SUBST(BEEP_DEFINES) | |
823 | |
824 AC_SUBST(beepdir) | |
825 AC_SUBST(plugindir) | |
826 | |
634 | 827 AC_SUBST(EFFECT_PLUGINS) |
828 AC_SUBST(GENERAL_PLUGINS) | |
829 AC_SUBST(INPUT_PLUGINS) | |
830 AC_SUBST(OUTPUT_PLUGINS) | |
831 AC_SUBST(VISUALIZATION_PLUGINS) | |
38 | 832 |
0 | 833 AC_CONFIG_FILES([ |
834 Makefile | |
835 audacious.1 | |
836 audacious.spec | |
837 audacious.pc | |
838 audacious/audacious.desktop | |
839 audacious/Makefile | |
840 audacious/glade/Makefile | |
841 audacious/images/Makefile | |
842 libaudacious/Makefile | |
62 | 843 Plugins/Makefile |
844 Plugins/Output/Makefile | |
845 Plugins/Output/OSS/Makefile | |
846 Plugins/Output/esd/Makefile | |
847 Plugins/Output/alsa/Makefile | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
848 Plugins/Output/jack/Makefile |
62 | 849 Plugins/Output/disk_writer/Makefile |
759 | 850 Plugins/Output/sun/Makefile |
62 | 851 Plugins/Input/Makefile |
852 Plugins/Input/mpg123/Makefile | |
853 Plugins/Input/aac/Makefile | |
854 Plugins/Input/aac/libmp4v2/Makefile | |
855 Plugins/Input/aac/libfaad2/Makefile | |
856 Plugins/Input/aac/src/Makefile | |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
857 Plugins/Input/modplug/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
858 Plugins/Input/modplug/archive/Makefile |
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
859 Plugins/Input/modplug/gui/Makefile |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
860 Plugins/Input/musepack/Makefile |
62 | 861 Plugins/Input/tonegen/Makefile |
862 Plugins/Input/vorbis/Makefile | |
863 Plugins/Input/cdaudio/Makefile | |
864 Plugins/Input/wav/Makefile | |
865 Plugins/Input/flac/Makefile | |
866 Plugins/Input/flac/plugin_common/Makefile | |
269
1b82a9932b60
[svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents:
263
diff
changeset
|
867 Plugins/Input/sid/Makefile |
111
9d6a24d21322
[svn] Update configure to generate the makefile for the SPC decoder...
nenolod
parents:
89
diff
changeset
|
868 Plugins/Input/console/Makefile |
139 | 869 Plugins/Input/wma/Makefile |
870 Plugins/Input/wma/libffwma/Makefile | |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
871 Plugins/Input/timidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
872 Plugins/Input/timidity/libtimidity/Makefile |
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
873 Plugins/Input/timidity/src/Makefile |
332
07576d3ed844
[svn] Sexypsf input plugin; patch by dai in bug #395.
chainsaw
parents:
325
diff
changeset
|
874 Plugins/Input/sexypsf/Makefile |
359 | 875 Plugins/Input/adplug/Makefile |
876 Plugins/Input/adplug/core/Makefile | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
877 Plugins/Input/amidi-plug/Makefile |
62 | 878 Plugins/Visualization/Makefile |
879 Plugins/Visualization/blur_scope/Makefile | |
116 | 880 Plugins/General/Makefile |
881 Plugins/General/song_change/Makefile | |
157 | 882 Plugins/General/lirc/Makefile |
688 | 883 Plugins/General/scrobbler/Makefile |
884 Plugins/General/scrobbler/tags/Makefile | |
277 | 885 Plugins/Effect/Makefile |
886 Plugins/Effect/ladspa/Makefile | |
0 | 887 po/Makefile.in |
888 intl/Makefile | |
889 icons/Makefile | |
890 skin/Makefile | |
562
5cdadcf74ec3
[svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents:
539
diff
changeset
|
891 mk/rules.mk |
0 | 892 ]) |
893 | |
894 AC_OUTPUT | |
895 | |
896 | |
897 echo | |
898 echo "Configuration:" | |
899 echo | |
900 echo " Install path: ${prefix}" | |
901 | |
902 if test "$BEEP_PATH" != "no"; then | |
38 | 903 echo " Current Audacious executable: $BEEP_PATH" |
0 | 904 fi |
905 | |
906 echo " Configuration path: \$HOME/$rc_path" | |
907 echo | |
908 echo " Use one plugin dir: $enable_one_plugin_dir" | |
909 echo " Allow user plugin dir: $enable_user_plugin_dir" | |
910 echo | |
911 echo " XMMS Legacy" | |
912 echo " -----------" | |
913 echo " Equalization (works only with mpg123) $use_xmms_eq" | |
914 echo | |
915 echo " GNOME support" | |
916 echo " -------------" | |
917 echo " GConf support $enable_gconf" | |
918 echo " VFS support $enable_gnomevfs" | |
919 echo | |
920 echo " Output Plugins" | |
921 echo " --------------" | |
922 echo " Open Sound System (oss): $have_oss" | |
923 echo " Advanced Linux Sound Arch. (alsa): $have_alsa" | |
924 echo " Enlightenment Sound Daemon (esd): $have_esd" | |
325
ea321d1dae48
[svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents:
319
diff
changeset
|
925 echo " Jack Audio Connection Kit (jack): $have_jack" |
758
f9e8807ea6e5
[svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents:
756
diff
changeset
|
926 echo " BSD/SUN audio output (sun): $have_sun" |
0 | 927 echo |
928 echo " Input Plugins" | |
929 echo " -------------" | |
930 echo " MPEG 1/2/3 (mpg123): $enable_mp3" | |
931 echo " + id3v2 editing: $have_id3lib" | |
2 | 932 echo " MPEG 4 Audio (AAC): $enable_aac" |
260
4b1c9d1a469b
[svn] Made WMA support configurable, defaults to on.
chainsaw
parents:
242
diff
changeset
|
933 echo " Windows Media Audio (wma): $enable_wma" |
293
9b191695629c
[svn] Add musepack input plugin & hook into build system.
chainsaw
parents:
285
diff
changeset
|
934 echo " .mpc playback (musepack): $enable_musepack" |
278
37316876ef6e
[svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents:
277
diff
changeset
|
935 echo " Module decoder (modplug): $enable_modplug" |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
936 echo " MIDI hw synth via ALSA (amidi-plug): $enable_amidiplug" |
285
d1762728ea4b
[svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents:
283
diff
changeset
|
937 echo " MIDI to WAVE converter (timidity): $enable_timidity" |
0 | 938 echo " CD Digital Audio (cdda): yes" |
939 echo " Microsoft WAV (wav): yes" | |
184
740c072f8e23
[svn] List sndfile extensions in the plugin configuration table.
chainsaw
parents:
165
diff
changeset
|
940 echo " + sndfile extensions: $enable_sndfile" |
11 | 941 echo " Tone Generator: yes" |
0 | 942 echo " Ogg Vorbis (vorbis): $have_oggvorbis" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
943 echo " Free Lossless Audio Codec (flac): $have_flac" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
944 echo " Commodore 64 audio (sid): $have_sidplay" |
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
945 echo " Game music (spc, nsf & gbs): yes" |
343
7b71e0dbb62d
[svn] Replace a tab with spaces to make Mikachu happy.
chainsaw
parents:
332
diff
changeset
|
946 echo " PlayStation audio (sexypsf): yes" |
359 | 947 echo " AdLib synthesizer (adplug): $have_adplug" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
948 echo |
116 | 949 echo " General" |
950 echo " -------" | |
951 echo " Song Change: yes" | |
648 | 952 echo " Internet Control: yes" |
157 | 953 echo " LIRC: $have_lirc" |
688 | 954 echo " AudioScrobbler Client: $scrobbler" |
270
c7efd92ee0e8
[svn] Update plugin descriptions in feature overview.
chainsaw
parents:
269
diff
changeset
|
955 echo |
277 | 956 echo " Effect" |
957 echo " ------" | |
958 echo " LADSPA effects host (ladspa): yes" | |
959 echo | |
0 | 960 echo " Visualization" |
961 echo " -------------" | |
962 echo " Blur Scope: yes" | |
963 echo | |
964 | |
965 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | |
32 | 966 echo "Note: You need to have thread-safe xlibs to use Audacious." |
0 | 967 echo "If you are using libc5 thread aware Xlibs just skip this." |
968 echo "" | |
969 echo "If you don't have those libs and you are on a libc5 system get them at:" | |
970 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/" | |
971 fi | |
972 | |
973 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then | |
974 echo "" | |
975 echo "Note: Configure has discovered that you already have Audacious installed" | |
976 echo "and it does not match with the given --prefix. You have Audacious installed " | |
977 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin." | |
978 echo | |
979 echo "If you don't want two copies of Audacious installed, rerun configure with" | |
980 echo "the --prefix option set to the location of the old Audacious, or uninstall" | |
981 echo "the old Audacious." | |
982 fi | |
523
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
983 |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
984 if test "x$ap_disable_timidity" = "xyes" && test "x$enable_timidity" = "xno"; then |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
985 echo "Note: an ALSA-supported hardware midi synth was detected in configuration;" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
986 echo "in order to use it, the amidi-plug (MIDI through ALSA) input plugin" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
987 echo "will be compiled in place of timidity. If you wish to compile timidity" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
988 echo "anyway, simply use --enable-timidity in configuration." |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
989 echo "" |
42380ff32bad
[svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents:
487
diff
changeset
|
990 fi |