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