0
|
1 dnl Process this file with autoconf to produce a configure script.
|
|
2
|
|
3 AC_INIT(audacious, 0.1)
|
|
4 AC_PREREQ(2.5)
|
|
5
|
|
6 AC_CANONICAL_HOST
|
|
7 AC_CANONICAL_TARGET
|
|
8
|
|
9 AM_INIT_AUTOMAKE
|
|
10
|
|
11 AC_CONFIG_HEADERS([config.h])
|
|
12
|
|
13 dnl libbeep
|
|
14 LIBBEEP_MAJOR_VERSION=2
|
|
15 LIBBEEP_MINOR_VERSION=0
|
|
16 LIBBEEP_MICRO_VERSION=0
|
|
17 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION
|
|
18 AC_SUBST(LIBBEEP_MAJOR_VERSION)
|
|
19 AC_SUBST(LIBBEEP_MINOR_VERSION)
|
|
20 AC_SUBST(LIBBEEP_MICRO_VERSION)
|
|
21
|
38
|
22 dnl XXX kludge for FreeBSD
|
|
23 if test -d "/usr/X11R6/include"; then
|
|
24 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
|
|
25 fi
|
0
|
26
|
|
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
|
|
41 dnl Check for assembler
|
|
42
|
|
43 AM_PROG_AS
|
|
44
|
|
45
|
|
46 dnl Checks for various programs
|
|
47
|
|
48 AC_PROG_INSTALL
|
|
49 AC_PROG_LN_S
|
|
50 AC_PROG_MAKE_SET
|
|
51
|
|
52 dnl Libtool
|
|
53 dnl FIXME: find a way to allow building static libbeep,
|
|
54 dnl without building static plugins
|
|
55
|
|
56 dnl Next four lines is a hack to prevent libtool checking for C++/F77
|
|
57 m4_undefine([AC_PROG_F77])
|
|
58 m4_defun([AC_PROG_F77],[])
|
|
59
|
|
60 AC_DISABLE_STATIC
|
|
61 AC_ENABLE_SHARED
|
|
62 AC_PROG_LIBTOOL
|
|
63
|
|
64 dnl Path settings
|
|
65
|
|
66 AC_PATH_PROG(BEEP_PATH, audacious, no)
|
|
67
|
|
68 AC_ARG_WITH(rc-path,
|
|
69 [ --rc-path=path Resource and configuration path for bmp relative to $HOME.],
|
|
70 [rc_path=$withval],
|
|
71 [rc_path=.audacious]
|
|
72 )
|
|
73 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
|
|
74 [Resource and configuration path for bmp relative to $HOME.]
|
|
75 )
|
|
76 AC_SUBST(BMP_RCPATH)
|
|
77
|
|
78 AC_ARG_ENABLE(one-plugin-dir,
|
|
79 [ --enable-one-plugin-dir Use a single plugin dir [default=no]],
|
|
80 [enable_one_plugin_dir=$enableval],
|
|
81 [enable_one_plugin_dir=no]
|
|
82 )
|
|
83
|
|
84 AC_ARG_ENABLE(user-plugin-dir,
|
|
85 [ --disable-user-plugin-dir disable per-user plugin dir],
|
|
86 [enable_user_plugin_dir=$enableval],
|
|
87 [enable_user_plugin_dir=yes]
|
|
88 )
|
|
89
|
|
90 AC_ARG_WITH(dev-dsp,
|
|
91 [ --with-dev-dsp=path Path to OSS DSP data pipe, default is /dev/dsp.],
|
|
92 [dev_dsp=$withval],
|
|
93 [dev_dsp=/dev/dsp]
|
|
94 )
|
|
95 AC_DEFINE_UNQUOTED(DEV_DSP, "$dev_dsp",
|
|
96 [Path to OSS DSP, really just a data pipe, default is /dev/dsp.]
|
|
97 )
|
|
98
|
|
99 AC_ARG_WITH(dev-mixer,
|
|
100 [ --with-dev-mixer=path Path to OSS sound mixer, default is /dev/mixer.],
|
|
101 [dev_mixer=$withval],
|
|
102 [dev_mixer=/dev/mixer]
|
|
103 )
|
|
104 AC_DEFINE_UNQUOTED(DEV_MIXER, "$dev_mixer",
|
|
105 [Path to OSS mixer, default is /dev/mixer.]
|
|
106 )
|
|
107
|
|
108 AC_ARG_WITH(cdda-device,
|
|
109 [ --with-cdda-device=path Path to default cdaudio device.],
|
|
110 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval",
|
|
111 [Path to default cdaudio device.]
|
|
112 )
|
|
113 ]
|
|
114 )
|
|
115
|
|
116 AC_ARG_WITH(cdda-dir,
|
|
117 [ --with-cdda-dir=path Path to default cdaudio directory.],
|
|
118 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval",
|
|
119 [Path to default cdaudio directory.]
|
|
120 )
|
|
121 ]
|
|
122 )
|
|
123
|
|
124
|
|
125 dnl If {type}_PLUGINS is defined, it should be a comma or space separated
|
|
126 dnl list of plugins that should be built, e.g.,
|
|
127 dnl INPUT_PLUGINS="mpg123,cdaudio cdin". If variable is not defined, all
|
|
128 dnl buildable plugins are compiled. This stuff makes life easier for
|
|
129 dnl automated builds that want to disable certain plugins.
|
|
130
|
|
131 for class in EFFECT GENERAL INPUT OUTPUT VISUALIZATION; do
|
|
132 value=`eval echo "\\$${class}_PLUGINS"`
|
|
133 if test "${value}" = ""; then
|
|
134 eval ${class}_PLUGINS="\$\(ALL_PLUGINS\)"
|
|
135 else
|
|
136 value=`echo ${value} | sed -e 's/,/ /g'`
|
|
137 eval ${class}_PLUGINS="\${value}"
|
|
138 fi
|
|
139 done
|
|
140
|
|
141 AC_SUBST(EFFECT_PLUGINS)
|
|
142 AC_SUBST(GENERAL_PLUGINS)
|
|
143 AC_SUBST(INPUT_PLUGINS)
|
|
144 AC_SUBST(OUTPUT_PLUGINS)
|
|
145 AC_SUBST(VISUALIZATION_PLUGINS)
|
|
146
|
|
147
|
|
148 dnl Option to change equalizer to the old XMMS one which only works with the mpg123
|
|
149 dnl plugin (or rather, only implemented within the plugin)
|
|
150
|
|
151 AC_ARG_WITH(xmms-eq,
|
|
152 [ --with-xmms-eq Use old XMMS equalization code.],
|
|
153 [use_xmms_eq=$withval],
|
|
154 [use_xmms_eq=no]
|
|
155 )
|
|
156
|
|
157 if test "$use_xmms_eq" = "yes"; then
|
|
158 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.])
|
|
159 fi
|
|
160
|
|
161
|
|
162 dnl Check for X
|
|
163 dnl FIXME: remove this dependency
|
|
164
|
|
165 AC_PATH_XTRA
|
|
166 if test "$no_x" = "yes" ; then
|
|
167 AC_MSG_ERROR([Cannot find X11 headers/libraries])
|
|
168 fi
|
|
169
|
|
170 dnl Check for GTK/GLib/GThread/Pango
|
|
171
|
|
172 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango],
|
|
173 [ADD_PC_REQUIRES([glib-2.0 >= 2.4.0, gtk+-2.0 >= 2.4.0])],
|
|
174 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
|
|
175 )
|
|
176
|
|
177 dnl Check for libglade
|
|
178
|
|
179 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1],
|
|
180 [],
|
|
181 [AC_MSG_ERROR([Cannot find libglade])]
|
|
182 )
|
|
183
|
|
184
|
|
185 dnl x86 SIMD(3DNow!/MMX) instructions support
|
|
186 dnl ========================
|
|
187
|
|
188 AC_ARG_ENABLE(simd,
|
|
189 [ --enable-simd build with x86 SIMD(3DNow!/MMX) instructions support (default=no)],
|
|
190 [USE_SIMD=$enableval],
|
|
191 [USE_SIMD=no]
|
|
192 )
|
|
193
|
|
194 if test "$USE_SIMD" = "yes"; then
|
|
195 AC_DEFINE(USE_SIMD, , [Define if building with ia32 SIMD support])
|
|
196 fi
|
|
197
|
|
198 AM_CONDITIONAL(USE_SIMD, test "$USE_SIMD" = "yes")
|
|
199 AC_SUBST(USE_SIMD_TRUE)
|
|
200
|
|
201
|
|
202 # Check if socklen_t is defined
|
|
203
|
|
204 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
|
|
205 [AC_TRY_COMPILE(
|
|
206 [#include <sys/types.h>
|
|
207 #include <sys/socket.h>],
|
|
208 [socklen_t s;],
|
|
209 [beep_cv_type_socklen_t=yes],
|
|
210 [beep_cv_type_socklen_t=no]
|
|
211 )
|
|
212 ]
|
|
213 )
|
|
214
|
|
215 if test "$beep_cv_type_socklen_t" = "no"; then
|
|
216 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
|
|
217 fi
|
|
218
|
|
219
|
|
220 dnl GConf support
|
|
221
|
|
222 AC_ARG_ENABLE( gconf,
|
|
223 [ --enable-gconf enable GConf support (default=disabled)],
|
|
224 [enable_gconf=$enableval],
|
|
225 [enable_gconf="no"]
|
|
226 )
|
|
227
|
|
228 if test "$enable_gconf" = "yes"; then
|
|
229 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0],
|
|
230 [
|
|
231 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support])
|
|
232 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0])
|
|
233 ],
|
|
234 [AC_MSG_ERROR([Cannot find GConf])]
|
|
235 )
|
|
236 fi
|
|
237
|
|
238 AM_CONDITIONAL(HAVE_GCONF, test "$enable_gconf" = "yes")
|
|
239
|
|
240
|
|
241 dnl GnomeVFS support
|
|
242
|
|
243 AC_ARG_ENABLE( gnome-vfs,
|
|
244 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)],
|
|
245 [enable_gnomevfs=$enableval],
|
|
246 [enable_gnomevfs="no"]
|
|
247 )
|
|
248
|
|
249 if test "$enable_gnomevfs" = "yes"; then
|
|
250 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0],
|
|
251 [
|
|
252 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support])
|
|
253 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0])
|
|
254 ],
|
|
255 [AC_MSG_ERROR([Cannot find GnomeVFS])]
|
|
256 )
|
|
257 fi
|
|
258
|
|
259 AM_CONDITIONAL(HAVE_GNOME_VFS, test "$enable_gnomevfs" = "yes")
|
|
260
|
|
261
|
|
262 dnl Check for esound
|
|
263
|
|
264 AC_ARG_ENABLE( esd,
|
|
265 [ --disable-esd disable esound output plugin [default=enabled]],
|
|
266 [enable_esd=$enableval],
|
|
267 [enable_esd="yes"]
|
|
268 )
|
|
269
|
|
270 if test "$enable_esd" = "yes"; then
|
|
271 PKG_CHECK_MODULES(ESD, [esound >= 0.2],
|
|
272 [have_esd=yes],
|
|
273 [have_esd=no]
|
|
274 )
|
|
275 else
|
|
276 AC_MSG_RESULT([*** esound plugin disabled per user request ***])
|
|
277 have_esd=no
|
|
278 fi
|
|
279
|
|
280 AM_CONDITIONAL(HAVE_ESD, test "$have_esd" = "yes")
|
|
281
|
|
282
|
|
283 dnl *** MP3
|
|
284
|
|
285 AC_ARG_ENABLE(mp3,
|
|
286 [ --disable-mp3 disable mp3 plugin. [default=enabled] ],
|
|
287 [enable_mp3=$enableval],
|
|
288 [enable_mp3=yes]
|
|
289 )
|
|
290
|
|
291 AM_CONDITIONAL(ENABLE_MPG123, test "$enable_mp3" = "yes")
|
|
292
|
|
293 dnl *** id3lib
|
|
294 dnl only makes sence if mp3's enabled
|
|
295 if test "x$enable_mp3" = "xyes" ; then
|
|
296
|
|
297 ID3LIBS=""
|
|
298 have_id3lib="no"
|
|
299
|
|
300 dnl here we assume that if libz isn't installed but id3lib is
|
|
301 dnl it's compiled without compression support
|
|
302 AC_CHECK_HEADERS([id3.h],[
|
|
303 AC_CHECK_LIB([z],[compress],[ZLIB='-lz'],[ZLIB=''])
|
|
304 AC_CHECK_LIB([id3],[ID3Tag_New],
|
|
305 [have_id3lib=yes
|
|
306 AC_DEFINE(HAVE_ID3LIB,,[Define when using id3lib])
|
|
307 ID3LIBS="-lstdc++ $ZLIB -lid3"],,[-lstdc++ $ZLIB])])
|
|
308
|
|
309 AC_SUBST(ID3LIBS)
|
|
310
|
|
311 fi dnl $enable_mp3 = yes
|
|
312
|
|
313 dnl *** Ogg Vorbis
|
|
314
|
|
315 AC_ARG_ENABLE(vorbis,
|
|
316 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)],
|
|
317 [enable_vorbis=$enableval],
|
|
318 [enable_vorbis="yes"]
|
|
319 )
|
|
320
|
|
321 if test "$enable_vorbis" = "yes"; then
|
|
322 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
|
|
323 [have_oggvorbis=yes],
|
|
324 [AC_MSG_ERROR([Cannot find libogg/libvorbis])
|
|
325 have_oggvorbis=no]
|
|
326 )
|
|
327 else
|
|
328 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***])
|
|
329 have_oggvorbis=no
|
|
330 fi
|
|
331
|
|
332 AM_CONDITIONAL(HAVE_OGGVORBIS, [test "$have_oggvorbis" = "yes"])
|
|
333
|
2
|
334 dnl *** AAC
|
|
335
|
|
336 AC_ARG_ENABLE(aac,
|
|
337 [ --disable-aac disable aac plugin. [default=enabled] ],
|
|
338 [enable_aac=$enableval],
|
|
339 [enable_aac=yes]
|
|
340 )
|
|
341
|
|
342 AM_CONDITIONAL(ENABLE_AAC, test "$enable_aac" = "yes")
|
0
|
343
|
32
|
344 dnl *** mikmod
|
|
345 AC_ARG_ENABLE( mikmod,
|
|
346 [ --disable-mikmod Disable mikmod input plugin [default=enabled]],,
|
|
347 enable_mikmod="yes")
|
|
348
|
|
349 if test "x$enable_mikmod" = xyes; then
|
|
350 AM_PATH_LIBMIKMOD(3.1.5,have_mikmod=yes, have_mikmod=no)
|
|
351 else
|
|
352 AC_MSG_RESULT([*** mikmod plugin disabled per user request ***])
|
|
353 have_mikmod=no
|
|
354 fi
|
|
355 AM_CONDITIONAL(HAVE_MIKMOD,test "x$have_mikmod" = xyes)
|
|
356
|
|
357
|
0
|
358 dnl *** OSS output
|
|
359
|
|
360 AC_ARG_ENABLE(oss,
|
|
361 [ --disable-oss disable the OSS output plugin],
|
|
362 [have_oss=$enableval],
|
|
363 [have_oss=yes]
|
|
364 )
|
|
365
|
|
366 if test "$have_oss" = "yes"; then
|
|
367 AC_MSG_CHECKING(for OSS include dir)
|
|
368 OSS_CFLAGS=""
|
|
369 if test -f "/etc/oss.conf" ; then
|
|
370 for i in `cat /etc/oss.conf`; do
|
|
371 t=`echo $i | sed -e 's/OSSLIBDIR=//'`
|
|
372 if test "$i" != "$t" ; then
|
|
373 if test -f "$t/include/sys/soundcard.h" ; then
|
|
374 OSS_CFLAGS="-I$t/include"
|
|
375 fi
|
|
376 fi
|
|
377 done
|
|
378 fi
|
|
379 if test -n "$OSS_CFLAGS" ; then
|
|
380 AC_MSG_RESULT([$OSS_CFLAGS])
|
|
381 else
|
|
382 AC_MSG_RESULT([not found])
|
|
383 fi
|
|
384 CFLAGS_save=$CFLAGS
|
|
385 CFLAGS="$CFLAGS $OSS_CFLAGS"
|
|
386 AC_CHECK_HEADERS(sys/soundcard.h)
|
|
387 AC_CHECK_HEADERS(machine/soundcard.h)
|
|
388 CFLAGS=$CFLAGS_save
|
|
389
|
|
390 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
|
|
391 have_oss=yes
|
|
392 fi
|
|
393 fi
|
|
394
|
|
395 if test "$have_oss" = "yes"; then
|
|
396 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built])
|
|
397 else
|
|
398 have_oss=no
|
|
399 fi
|
|
400
|
|
401 AM_CONDITIONAL(HAVE_OSS, test "$have_oss" = "yes")
|
|
402
|
|
403
|
|
404 dnl *** ALSA output plugin
|
|
405
|
|
406 AC_ARG_ENABLE(alsa,
|
|
407 [ --disable-alsa disable ALSA input plugin (default=enabled)],
|
|
408 [enable_alsa=$enableval],
|
|
409 [enable_alsa=yes]
|
|
410 )
|
|
411
|
|
412 if test "$enable_alsa" = "yes"; then
|
|
413 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0],
|
|
414 [have_alsa=yes],
|
|
415 [have_alsa=no]
|
|
416 )
|
|
417 else
|
|
418 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***])
|
|
419 have_alsa=no
|
|
420 fi
|
|
421
|
|
422 AM_CONDITIONAL(HAVE_ALSA, test "$have_alsa" = "yes")
|
|
423
|
|
424
|
|
425 dnl FreeBSD newpcm driver detection
|
|
426
|
|
427 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver,
|
|
428 if test -r "/dev/sndstat"; then
|
|
429 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null
|
|
430 if test "x$?" = "x0"; then
|
|
431 beep_cv_newpcm_driver="yes"
|
|
432 else
|
|
433 beep_cv_newpcm_driver="no"
|
|
434 fi
|
|
435 else
|
|
436 beep_cv_newpcm_driver="no"
|
|
437 fi
|
|
438 )
|
|
439
|
|
440 if test "$beep_cv_newpcm_driver" = "yes"; then
|
|
441 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver])
|
|
442 fi
|
|
443
|
|
444
|
|
445 AC_CHECK_HEADERS(linux/cdrom.h)
|
|
446 AC_CHECK_HEADERS(sys/cdio.h)
|
|
447 AC_CHECK_HEADERS(linux/joystick.h)
|
|
448 AC_CHECK_HEADERS(unistd.h)
|
|
449 AC_CHECK_HEADERS(fcntl.h)
|
|
450 AC_CHECK_HEADERS(sys/ioctl.h)
|
|
451 AC_CHECK_HEADERS(fnmatch.h)
|
|
452 AC_CHECK_HEADERS(limits.h)
|
|
453 AC_CHECK_HEADERS(wchar.h)
|
|
454 AC_CHECK_HEADERS(fts.h)
|
|
455
|
|
456 AC_CHECK_FUNCS(mkdtemp)
|
|
457 AC_CHECK_FUNCS(getmntinfo)
|
|
458 AC_CHECK_FUNCS(strtoul)
|
|
459
|
|
460
|
|
461 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"
|
|
462 then
|
|
463 case "$host" in
|
|
464 *-*-sunos* | *-*-solaris* | *-*-linux*)
|
|
465 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style])
|
|
466 ;;
|
|
467 *-*-freebsd*)
|
|
468 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
469 ;;
|
|
470 *-*-netbsd* | *-*-openbsd*)
|
|
471 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
472 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant])
|
|
473 ;;
|
|
474 *-*darwin*)
|
|
475 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
|
|
476 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant])
|
|
477 ;;
|
|
478 esac
|
|
479 fi
|
|
480
|
|
481
|
|
482 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes")
|
|
483 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes")
|
|
484
|
|
485 if test -n "$GCC"
|
|
486 then
|
|
487 CFLAGS="$CFLAGS -Wall -Wpointer-arith -finline-functions -ffast-math"
|
|
488 case "$CFLAGS" in
|
|
489 -g*) ;;
|
|
490 *\ -g*) ;;
|
|
491 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
|
|
492 esac
|
|
493 case "$host" in
|
|
494 *-*-freebsd*)
|
|
495 ;;
|
|
496 *)
|
|
497 CFLAGS="$CFLAGS -funroll-all-loops"
|
|
498 ;;
|
|
499 esac
|
|
500 fi
|
|
501
|
|
502 AC_MSG_CHECKING(if __ELF__ is defined)
|
|
503 AC_EGREP_CPP(yes,
|
|
504 [#ifdef __ELF__
|
|
505 yes
|
|
506 #endif
|
|
507 ],
|
|
508 [is_elf=yes],
|
|
509 [is_elf=no]
|
|
510 )
|
|
511 AC_MSG_RESULT([${is_elf}])
|
|
512
|
|
513
|
|
514 have_solaris=no
|
|
515 have_sun=no
|
|
516 ARCH_DEFINES=""
|
|
517 case "$host" in
|
|
518 *-*-openbsd* | *-*-netbsd*)
|
|
519 have_sun=yes
|
|
520 if test "${is_elf}" = "no"
|
|
521 then
|
|
522 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
|
|
523 fi
|
|
524 ;;
|
|
525 *-*-darwin*)
|
|
526 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
|
|
527 ;;
|
|
528 *-hpux-*)
|
|
529 ARCH_DEFINES="-DHPUX"
|
|
530 ;;
|
|
531 *-*-solaris* | *-*-sunos*)
|
|
532 have_solaris=yes
|
|
533 ;;
|
|
534 esac
|
|
535
|
|
536 arch_type=other
|
|
537 x86_asm=no
|
|
538 case "$host" in
|
|
539 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
|
|
540 arch_type=ix86
|
|
541 case "$host" in
|
|
542 *-*-netbsd* | *-*openbsd*)
|
|
543 ;;
|
|
544 *)
|
|
545 ARCH_DEFINES="-DI386_ASSEM"
|
|
546 x86_asm=yes
|
|
547 ;;
|
|
548 esac
|
|
549 ;;
|
|
550 esac
|
|
551
|
|
552
|
|
553 AC_SUBST(ARCH_DEFINES)
|
|
554 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
|
|
555 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
|
|
556 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
|
|
557 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
|
|
558
|
|
559 plugindir=$libdir/audacious
|
|
560 AC_SUBST(plugindir)
|
|
561
|
|
562 if test "x$enable_one_plugin_dir" = "xyes"; then
|
|
563 pluginsubs="\\\"Plugins\\\""
|
|
564 INPUT_PLUGIN_DIR=Plugins
|
|
565 OUTPUT_PLUGIN_DIR=Plugins
|
|
566 EFFECT_PLUGIN_DIR=Plugins
|
|
567 GENERAL_PLUGIN_DIR=Plugins
|
|
568 VISUALIZATION_PLUGIN_DIR=Plugins
|
|
569 else
|
|
570 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\""
|
|
571 INPUT_PLUGIN_DIR=Input
|
|
572 OUTPUT_PLUGIN_DIR=Output
|
|
573 EFFECT_PLUGIN_DIR=Effect
|
|
574 GENERAL_PLUGIN_DIR=General
|
|
575 VISUALIZATION_PLUGIN_DIR=Visualization
|
|
576 fi
|
|
577
|
|
578 AC_SUBST(INPUT_PLUGIN_DIR)
|
|
579 AC_SUBST(OUTPUT_PLUGIN_DIR)
|
|
580 AC_SUBST(EFFECT_PLUGIN_DIR)
|
|
581 AC_SUBST(GENERAL_PLUGIN_DIR)
|
|
582 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
|
|
583 AC_SUBST(pluginsubs)
|
|
584
|
|
585 localedir=$datadir/locale
|
|
586 AC_SUBST(localedir)
|
|
587
|
|
588 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
|
|
589 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
|
|
590
|
|
591 if test "$enable_user_plugin_dir" = "no"; then
|
|
592 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
|
|
593 fi
|
|
594
|
|
595 AC_SUBST(BEEP_DEFINES)
|
|
596
|
|
597 PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex "get_.plugin_info"'
|
|
598 AC_SUBST(PLUGIN_LDFLAGS)
|
|
599
|
|
600 AC_SUBST(beepdir)
|
|
601 AC_SUBST(plugindir)
|
|
602
|
38
|
603 have_libvisual="yes"
|
|
604
|
|
605 AC_CHECK_HEADERS([GL/gl.h GL/glx.h GL/glu.h],opengl="yes",opengl="no")
|
|
606 if test x"$opengl" = xno; then
|
|
607 AC_WARN([OpenGL and Glu headers not found, libvisual support cannot be built])
|
|
608 have_libvisual="no"
|
|
609 fi
|
|
610
|
|
611 AC_PATH_PROG(SDL_CONFIG, [sdl-config], [no])
|
|
612 if test x$SDL_CONFIG = xno ; then
|
|
613 AC_WARN([
|
|
614 *** sdl-config not found.
|
|
615 *** If you have installed from binaries, probably you have not
|
|
616 *** installed SDL development package.
|
|
617 *** See http://www.libsdl.org
|
|
618 ***
|
|
619 *** Disabling compilation of libvisual-proxy.
|
|
620 ])
|
|
621 fi
|
|
622 AM_PATH_SDL(1.2.5, , [AC_WARN([*** SDL >= 1.2.5 not installed - please install first ***])
|
|
623 have_libvisual="no"])
|
|
624
|
|
625 PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.2.0, [libvis="yes"], [libvis="no"])
|
|
626 if test x"$libvis" = xno; then
|
|
627 have_libvisual="no"
|
|
628 fi
|
|
629 AC_SUBST(LIBVISUAL_LIBS)
|
|
630 AC_SUBST(LIBVISUAL_CFLAGS)
|
|
631
|
|
632 AM_CONDITIONAL(HAVE_LIBVISUAL, test "x$have_libvisual" = xyes)
|
|
633
|
0
|
634 AC_CONFIG_FILES([
|
|
635 Makefile
|
|
636 audacious.1
|
|
637 audacious.spec
|
|
638 audacious.pc
|
|
639 audacious/audacious.desktop
|
|
640 audacious/Makefile
|
|
641 audacious/glade/Makefile
|
|
642 audacious/images/Makefile
|
|
643 libaudacious/Makefile
|
|
644 Output/Makefile
|
|
645 Output/OSS/Makefile
|
|
646 Output/esd/Makefile
|
|
647 Output/alsa/Makefile
|
48
|
648 Output/disk_writer/Makefile
|
0
|
649 Input/Makefile
|
|
650 Input/mpg123/Makefile
|
2
|
651 Input/aac/Makefile
|
|
652 Input/aac/libmp4v2/Makefile
|
|
653 Input/aac/libfaad2/Makefile
|
6
|
654 Input/aac/src/Makefile
|
32
|
655 Input/mikmod/Makefile
|
11
|
656 Input/tonegen/Makefile
|
0
|
657 Input/vorbis/Makefile
|
|
658 Input/cdaudio/Makefile
|
|
659 Input/wav/Makefile
|
|
660 Visualization/Makefile
|
|
661 Visualization/blur_scope/Makefile
|
38
|
662 Visualization/libvisual-proxy/Makefile
|
0
|
663 po/Makefile.in
|
|
664 intl/Makefile
|
|
665 icons/Makefile
|
|
666 skin/Makefile
|
|
667 ])
|
|
668
|
|
669 AC_OUTPUT
|
|
670
|
|
671
|
|
672 echo
|
|
673 echo "Configuration:"
|
|
674 echo
|
|
675 echo " Install path: ${prefix}"
|
|
676
|
|
677 if test "$BEEP_PATH" != "no"; then
|
38
|
678 echo " Current Audacious executable: $BEEP_PATH"
|
0
|
679 fi
|
|
680
|
|
681 echo " Configuration path: \$HOME/$rc_path"
|
|
682 echo
|
|
683 echo " Use one plugin dir: $enable_one_plugin_dir"
|
|
684 echo " Allow user plugin dir: $enable_user_plugin_dir"
|
|
685 echo
|
|
686 echo " XMMS Legacy"
|
|
687 echo " -----------"
|
|
688 echo " Equalization (works only with mpg123) $use_xmms_eq"
|
|
689 echo
|
|
690 echo " GNOME support"
|
|
691 echo " -------------"
|
|
692 echo " GConf support $enable_gconf"
|
|
693 echo " VFS support $enable_gnomevfs"
|
|
694 echo
|
|
695 echo " Output Plugins"
|
|
696 echo " --------------"
|
|
697 echo " Open Sound System (oss): $have_oss"
|
|
698 echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
|
|
699 echo " Enlightenment Sound Daemon (esd): $have_esd"
|
|
700 echo
|
|
701 echo " Input Plugins"
|
|
702 echo " -------------"
|
|
703 echo " MPEG 1/2/3 (mpg123): $enable_mp3"
|
|
704 echo " + id3v2 editing: $have_id3lib"
|
2
|
705 echo " MPEG 4 Audio (AAC): $enable_aac"
|
32
|
706 echo " Module decoder (mikmod): $enable_mikmod"
|
0
|
707 echo " CD Digital Audio (cdda): yes"
|
|
708 echo " Microsoft WAV (wav): yes"
|
11
|
709 echo " Tone Generator: yes"
|
0
|
710 echo " Ogg Vorbis (vorbis): $have_oggvorbis"
|
|
711 echo ""
|
|
712 echo " Visualization"
|
|
713 echo " -------------"
|
|
714 echo " Blur Scope: yes"
|
38
|
715 echo " libvisual-proxy: $have_libvisual"
|
0
|
716 echo
|
|
717
|
|
718 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
|
32
|
719 echo "Note: You need to have thread-safe xlibs to use Audacious."
|
0
|
720 echo "If you are using libc5 thread aware Xlibs just skip this."
|
|
721 echo ""
|
|
722 echo "If you don't have those libs and you are on a libc5 system get them at:"
|
|
723 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
|
|
724 fi
|
|
725
|
|
726 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
|
|
727 echo ""
|
|
728 echo "Note: Configure has discovered that you already have Audacious installed"
|
|
729 echo "and it does not match with the given --prefix. You have Audacious installed "
|
|
730 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
|
|
731 echo
|
|
732 echo "If you don't want two copies of Audacious installed, rerun configure with"
|
|
733 echo "the --prefix option set to the location of the old Audacious, or uninstall"
|
|
734 echo "the old Audacious."
|
|
735 fi
|