annotate configure.ac @ 1638:9937a2512823 trunk

[svn] - wma.c: use av_malloc() instead of directly using posix_memalign() - libffwma/mem.c: use posix_memalign() only on glibc, other platforms do not need it
author nenolod
date Thu, 07 Sep 2006 11:45:48 -0700
parents 978ada910173
children d05836d18d42
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2
1603
0f2ca8c7cd98 [svn] - version update
nenolod
parents: 1569
diff changeset
3 AC_INIT(audacious, 1.2.0)
1420
0aa4bee03747 [svn] - ok, move this fix down a little
nenolod
parents: 1419
diff changeset
4 AC_PREREQ([2.59])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 AC_CANONICAL_HOST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 AC_CANONICAL_TARGET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 AC_CONFIG_HEADERS([config.h])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 dnl libbeep
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 LIBBEEP_MAJOR_VERSION=2
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 LIBBEEP_MINOR_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 LIBBEEP_MICRO_VERSION=0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 LIBBEEP_VERSION=$LIBBEEP_MAJOR_VERSION.$LIBBEEP_MINOR_VERSION.$LIBBEEP_MICRO_VERSION
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 AC_SUBST(LIBBEEP_MAJOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 AC_SUBST(LIBBEEP_MINOR_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 AC_SUBST(LIBBEEP_MICRO_VERSION)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
20 dnl XXX kludge for FreeBSD
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
21 if test -d "/usr/X11R6/include"; then
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
23 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
756
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
25 AM_INIT_AUTOMAKE
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
26
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 dnl GNU gettext
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 AM_GNU_GETTEXT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 AM_GNU_GETTEXT_VERSION([0.12.1])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 dnl Check for C compiler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34
1353
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
35 AC_PROG_CC
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
36 AC_PROG_CXX
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 AC_ISC_POSIX
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 AC_C_BIGENDIAN
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 dnl Check for assembler
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 AM_PROG_AS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 dnl Checks for various programs
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 AC_PROG_INSTALL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 AC_PROG_LN_S
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 AC_PROG_MAKE_SET
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49
750
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
50 AC_PATH_PROG(RM, rm)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
51 AC_PATH_PROG(MV, mv)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
52 AC_PATH_PROG(CP, cp)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
53 AC_PATH_PROG(AR, ar)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
54 AC_PATH_PROG(RANLIB, ranlib)
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
55
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 dnl Path settings
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 AC_PATH_PROG(BEEP_PATH, audacious, no)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 [rc_path=$withval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 [rc_path=.audacious]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 AC_DEFINE_UNQUOTED(BMP_RCPATH, "$rc_path",
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
66 [Resource and configuration path for audacious relative to $HOME.]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 AC_SUBST(BMP_RCPATH)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 AC_ARG_ENABLE(one-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 [ --enable-one-plugin-dir Use a single plugin dir [default=no]],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 [enable_one_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 [enable_one_plugin_dir=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 AC_ARG_ENABLE(user-plugin-dir,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 [ --disable-user-plugin-dir disable per-user plugin dir],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 [enable_user_plugin_dir=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 [enable_user_plugin_dir=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 [dev_dsp=$withval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 [dev_dsp=/dev/dsp]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 AC_DEFINE_UNQUOTED(DEV_DSP, "$dev_dsp",
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 [Path to OSS DSP, really just a data pipe, default is /dev/dsp.]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 [dev_mixer=$withval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 [dev_mixer=/dev/mixer]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 AC_DEFINE_UNQUOTED(DEV_MIXER, "$dev_mixer",
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 [Path to OSS mixer, default is /dev/mixer.]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 [AC_DEFINE_UNQUOTED(CDDA_DEVICE, "$withval",
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 [Path to default cdaudio device.]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
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
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 [AC_DEFINE_UNQUOTED(CDDA_DIRECTORY, "$withval",
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 [Path to default cdaudio directory.]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
116 dnl These plugins are always built.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117
1503
5679777b7a3f [svn] - hook up cue plugin
nenolod
parents: 1493
diff changeset
118 INPUT_PLUGINS="cdaudio tonegen console sexypsf wav cue"
820
4e6132a6c2c1 [svn] - fix disk_writer build
nenolod
parents: 812
diff changeset
119 OUTPUT_PLUGINS="disk_writer"
937
6158ee7d8b06 [svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents: 920
diff changeset
120 EFFECT_PLUGINS="audiocompress ladspa voice_removal"
710
500f6d54bc46 [svn] Remove references to inetctl from the build system.
chainsaw
parents: 706
diff changeset
121 GENERAL_PLUGINS="song_change"
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
122 VISUALIZATION_PLUGINS="blur_scope"
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
123 CONTAINER_PLUGINS="m3u pls"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 dnl Option to change equalizer to the old XMMS one which only works with the mpg123
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 dnl plugin (or rather, only implemented within the plugin)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 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
129 [ --with-xmms-eq Use old XMMS equalization code.],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 [use_xmms_eq=$withval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 [use_xmms_eq=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 if test "$use_xmms_eq" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135 AC_DEFINE(XMMS_EQ, , [Define if building with old XMMS equalization code.])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 dnl Check for GTK/GLib/GThread/Pango
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139
535
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
140 PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango],
f0464cb2f609 [svn] We now require GTK+ 2.6.x.
nenolod
parents: 527
diff changeset
141 [ADD_PC_REQUIRES([glib-2.0 >= 2.6.0, gtk+-2.0 >= 2.6.0])],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 dnl Check for libglade
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= 2.3.1],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 [],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 [AC_MSG_ERROR([Cannot find libglade])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151
967
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
152 AC_PATH_PROG(TAGLIB_CONFIG, taglib-config, [no], [$PATH:$prefix/bin])
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
153 if test "x$TAGLIB_CONFIG" = "xno" ; then
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
154 AC_MSG_ERROR([Cannot find taglib])
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
155 else
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
156 TAGLIB_CFLAGS=[`$TAGLIB_CONFIG --cflags`]
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
157 TAGLIB_LIBS=[`$TAGLIB_CONFIG --libs`]
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
158 fi
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
159 AC_SUBST(TAGLIB_CFLAGS)
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
160 AC_SUBST(TAGLIB_LIBS)
55757f96ef5d [svn] Force dependance on taglib now used by mpg123 and musepack.
nemo
parents: 960
diff changeset
161
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 # Check if socklen_t is defined
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 AC_CACHE_CHECK(for socklen_t, beep_cv_type_socklen_t,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 [AC_TRY_COMPILE(
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 [#include <sys/types.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 #include <sys/socket.h>],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 [socklen_t s;],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169 [beep_cv_type_socklen_t=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 [beep_cv_type_socklen_t=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 ]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 if test "$beep_cv_type_socklen_t" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 AC_DEFINE(socklen_t, int, [Define to int if the socklen_t type is missing])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178
978
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
179 dnl IPv6 support
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
180 dnl ========================
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
181 AC_ARG_ENABLE(ipv6,
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
182 [ --enable-ipv6 enable IPv6 support (default=no)],
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
183 enable_ipv6=$enableval, enable_ipv6=no)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
184 if test "x$enable_ipv6" = xyes; then
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
185 AC_DEFINE(USE_IPV6,, [Define if building with IPv6 support] )
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
186 fi
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
187 AM_CONDITIONAL(USE_IPV6,test "x$enable_ipv6" = xyes)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
188 AC_SUBST(USE_IPV6)
a7b53e6a71e0 [svn] - IPv6 support
nenolod
parents: 967
diff changeset
189
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
190 dnl plugin stuff
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
191 dnl ========================
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
192
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
193 dnl Ok, first we find out what flags we need to use.
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
194 AC_MSG_CHECKING([for what extension and flags to use for plugin compilation])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
195 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
196 *-apple-*)
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
197 AC_MSG_RESULT([Mac OS X: -fPIC -bundle -flat_namespace -undefined suppress, .dylib])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
198 PICFLAGS="-fPIC -DPIC"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
199 PICLDFLAGS="-fPIC -DPIC -bundle -flat_namespace -undefined suppress"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
200 LIBLDFLAGS="-dynamiclib"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
201 AUDLDFLAGS=""
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
202 SHARED_SUFFIX=".dylib"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
203 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
204 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
205 AC_MSG_RESULT([libdl-compatible: -fPIC -DPIC -shared, .so])
1624
d863bca9b6d7 [svn] - PICFLAGS should not call -shared/-bundle as some versions of GCC will misinterpret that. Only PICLDFLAGS should.
nenolod
parents: 1622
diff changeset
206 PICFLAGS="-fPIC -DPIC"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
207 PICLDFLAGS="-fPIC -DPIC -shared"
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
208 LIBLDFLAGS="-fPIC -DPIC -shared"
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
209 AUDLDFLAGS="-Wl,-export-dynamic -Wl,-rpath=\${libdir}"
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
210 SHARED_SUFFIX=".so"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
211 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
212 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
213 AC_SUBST(PICFLAGS)
1626
83769dcca55e [svn] - AC_SUBST(PICLDFLAGS) sorry
nenolod
parents: 1624
diff changeset
214 AC_SUBST(PICLDFLAGS)
1630
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
215 AC_SUBST(LIBLDFLAGS)
842667773cc0 [svn] - audacious now builds on OS X
nenolod
parents: 1629
diff changeset
216 AC_SUBST(AUDLDFLAGS)
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
217 AC_SUBST(SHARED_SUFFIX)
1632
978ada910173 [svn] - module fixes
nenolod
parents: 1631
diff changeset
218 AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "${SHARED_SUFFIX}",
1631
20ff61083530 [svn] - make audtool build
nenolod
parents: 1630
diff changeset
219 [Define the shared module suffix extension on your platform.])
1622
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
220
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
221 AC_MSG_CHECKING([if you are running Apple-GCC])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
222 case "$target" in
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
223 *-apple-*)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
224 AC_MSG_RESULT([yes, sorry you poor bastard])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
225 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
226 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
227 *)
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
228 AC_MSG_RESULT([no])
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
229 ;;
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
230 esac
55011fbbd8cb [svn] - detect what $(SHARED_SUFFIX) should be.
nenolod
parents: 1613
diff changeset
231
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
232 dnl chardet support
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
233 dnl ========================
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
234 AC_ARG_ENABLE(chardet,
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
235 [ --enable-chardet enable character set detection support (default=no)],
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
236 enable_chardet=$enableval, enable_chardet=no)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
237 if test "x$enable_chardet" = xyes; then
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
238 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] )
1317
a698348c5155 [svn] - libaac: potential buffer overflow vulnerability fix
nenolod
parents: 1265
diff changeset
239 AC_CHECK_LIB(guess, guess_jp, [SUBDIR_GUESS=[''] CHARDET_LIBS=['-lguess']], [SUBDIR_GUESS=['libguess'] CHARDET_LIBS=['../libguess/libguess.a']])
1613
9becbe564217 [svn] - chardet patch for Russian language witten by Valentine Sinitsyn.
yaz
parents: 1603
diff changeset
240 AC_CHECK_LIB(rcd, rcdGetRussianCharset, [CHARDET_LIBS=["$CHARDET_LIBS -lrcd"]], [SUBDIR_GUESS=["$SUBDIR_GUESS librcd"] CHARDET_LIBS=["$CHARDET_LIBS ../librcd/librcd.a"]])
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
241 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]])
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
242 fi
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
243 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
244 AC_SUBST(USE_CHARDET)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
245 AC_SUBST(CHARDET_LIBS)
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
246 AC_SUBST(SUBDIR_GUESS)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
247
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
248 dnl GConf support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
249
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
250 AC_ARG_ENABLE( gconf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
251 [ --enable-gconf enable GConf support (default=disabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
252 [enable_gconf=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
253 [enable_gconf="no"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
255
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
256 if test "$enable_gconf" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
257 PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.6.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
258 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
259 AC_DEFINE(HAVE_GCONF, , [Define if building with GConf support])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260 ADD_PC_REQUIRES([gconf-2.0 >= 2.6.0])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
261 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
262 [AC_MSG_ERROR([Cannot find GConf])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
263 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
264 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
265
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
266 if test "$enable_gconf" = "yes"; then
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
267 CONFIGDB_BACKEND="gconf"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
268 else
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
269 CONFIGDB_BACKEND="rcfile"
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
270 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
271
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
272 AC_SUBST(CONFIGDB_BACKEND)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
273
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
274 dnl GnomeVFS support
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
275
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
276 AC_ARG_ENABLE( gnome-vfs,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
277 [ --enable-gnome-vfs enable GnomeVFS support (default=disabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
278 [enable_gnomevfs=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 [enable_gnomevfs="no"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 if test "$enable_gnomevfs" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 PKG_CHECK_MODULES(GNOMEVFS, [gnome-vfs-2.0 >= 2.6.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 [
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 AC_DEFINE(HAVE_GNOME_VFS, , [Define if building with GnomeVFS support])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
286 ADD_PC_REQUIRES([gnome-vfs-2.0 >= 2.6.0])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 [AC_MSG_ERROR([Cannot find GnomeVFS])]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
291
726
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
292 if test "$enable_gnomevfs" = "yes"; then
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
293 VFS_BACKEND="gnome"
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
294 else
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
295 VFS_BACKEND="stdio"
b50d5337a8ce [svn] - gnomevfs
nenolod
parents: 725
diff changeset
296 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297
727
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
298 AC_SUBST(VFS_BACKEND)
c331d6c6880a [svn] - gconf
nenolod
parents: 726
diff changeset
299
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 dnl Check for esound
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 AC_ARG_ENABLE( esd,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 [ --disable-esd disable esound output plugin [default=enabled]],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 [enable_esd=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 [enable_esd="yes"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308 if test "$enable_esd" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 PKG_CHECK_MODULES(ESD, [esound >= 0.2],
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
310 [have_esd=yes
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
311 OUTPUT_PLUGINS="$OUTPUT_PLUGINS esd"],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 [have_esd=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
314 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 AC_MSG_RESULT([*** esound plugin disabled per user request ***])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 have_esd=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318
1353
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
319 dnl *** AltiVec
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
320
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
321 AC_CHECK_HEADERS(altivec.h,
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
322 [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.])
1398
1ddaf20ab50e [svn] AltiVec support for WMA, by Luca "lu_zero" Barbato from Gentoo.
chainsaw
parents: 1394
diff changeset
323 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.])
1353
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
324 AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.])
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
325 DCT64=dct64_altivec.c],
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
326 [DCT64=dct64.c]
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
327 )
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
328 AC_SUBST(DCT64)
35ef03569852 [svn] Hook up Altivec-enabled DCT64 for MP3. WMA throws a tantrum on Altivec machines. Submit a patch, or wait for me to fix it.
chainsaw
parents: 1317
diff changeset
329
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
330 dnl *** MP3
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
331
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332 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
333 [ --disable-mp3 disable mp3 plugin. (default=enabled) ],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
334 [enable_mp3=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
335 [enable_mp3=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
336 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
337
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
338 if test "$enable_mp3" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
339 INPUT_PLUGINS="$INPUT_PLUGINS mpg123"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
340 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
341
1457
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
342 dnl *** ThinkLight support
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
343
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
344 AC_CHECK_FILE([/proc/acpi/ibm/light], [VISUALIZATION_PLUGINS="$VISUALIZATION_PLUGINS rocklight"])
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
345
157
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
346 dnl *** LIRC client libraries
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
347
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
348 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
349 [ --disable-lirc disable LIRC plugin (default=enabled)],
157
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
350 [enable_lirc=$enableval],
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
351 [enable_lirc="yes"]
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
352 )
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
353
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
354 if test "$enable_lirc" = "yes"; then
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
355 AC_CHECK_LIB([lirc_client],[lirc_init],[have_lirc=yes],[have_lirc=no])
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
356 else
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
357 AC_MSG_RESULT([*** LIRC plugin disabled per user request ***])
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
358 have_lirc="no"
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
359 fi
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
360
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
361 if test "$have_lirc" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
362 GENERAL_PLUGINS="$GENERAL_PLUGINS lirc"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
363 fi
157
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
364
1493
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
365 dnl *** libnotify requirement
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
366
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
367 AC_ARG_ENABLE(notify,
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
368 [ --disable-notify disable libnotify plugin (default=enabled)],
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
369 [enable_libnotify=$enableval],
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
370 [enable_libnotify="yes"]
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
371 )
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
372
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
373 if test "$enable_libnotify" = "yes"; then
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
374 PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= 0.4.2],
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
375 [have_libnotify=yes
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
376 GENERAL_PLUGINS="$GENERAL_PLUGINS notify"],
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
377 [have_libnotify=no]
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
378 )
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
379 else
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
380 AC_MSG_RESULT([*** libnotify plugin disabled per user request ***])
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
381 have_libnotify="no"
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
382 fi
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
383
386
1f278b7d6f58 [svn] Correct binio detection logic.
chainsaw
parents: 384
diff changeset
384 dnl *** AdPlug requirement (libbinio)
359
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
385
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
386 AC_ARG_ENABLE(adplug,
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
387 [ --disable-adplug disable AdPlug plugin (default=enabled)],
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
388 [enable_adplug=$enableval],
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
389 [enable_adplug="yes"]
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
390 )
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
391
386
1f278b7d6f58 [svn] Correct binio detection logic.
chainsaw
parents: 384
diff changeset
392 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
393 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
394 PKG_CHECK_MODULES(BINIO,[libbinio >= 1.4],,[have_adplug=no])
359
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
395 else
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
396 AC_MSG_RESULT([*** AdPlug plugin disabled per user request ***])
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
397 have_adplug="no"
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
398 fi
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
399
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
400 if test "$have_adplug" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
401 INPUT_PLUGINS="$INPUT_PLUGINS adplug"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
402 fi
359
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
403
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
404 dnl *** Ogg Vorbis
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
405
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
406 AC_ARG_ENABLE(vorbis,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
407 [ --disable-vorbis disable Ogg Vorbis input plugin (default=enabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
408 [enable_vorbis=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409 [enable_vorbis="yes"]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
410 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
411
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
412 if test "$enable_vorbis" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
413 PKG_CHECK_MODULES(OGG_VORBIS, [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
414 [have_oggvorbis=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
415 [AC_MSG_ERROR([Cannot find libogg/libvorbis])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
416 have_oggvorbis=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
417 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
418 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
419 AC_MSG_RESULT([*** Ogg Vorbis plugin disabled per user request ***])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
420 have_oggvorbis=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
422
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
423 if test "$have_oggvorbis" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
424 INPUT_PLUGINS="$INPUT_PLUGINS vorbis"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
425 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
426
2
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
427 dnl *** AAC
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
428
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
429 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
430 [ --disable-aac disable aac plugin (default=enabled) ],
2
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
431 [enable_aac=$enableval],
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
432 [enable_aac=yes]
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
433 )
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
434
706
f520a0abddbc [svn] - fix AAC build
nenolod
parents: 703
diff changeset
435 if test "$enable_aac" = "yes"; then
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
436 INPUT_PLUGINS="$INPUT_PLUGINS aac"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
437 fi
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
438
165
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
439 dnl *** sndfile
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
440
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
441 AC_ARG_ENABLE(sndfile,
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
442 [ --disable-sndfile disable sndfile extensions. [default=enabled] ],
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
443 [enable_sndfile=$enableval],
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
444 [enable_sndfile=yes]
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
445 )
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
446
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
447 if test "$enable_sndfile" = "yes"; then
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
448 PKG_CHECK_MODULES(SNDFILE, [sndfile >= 0.19],
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
449 [enable_sndfile=yes],
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
450 [enable_sndfile=no]
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
451 )
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
452 else
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
453 AC_MSG_RESULT([*** libsndfile extensions disabled per user request ***])
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
454 enable_sndfile=no
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
455 fi
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
456
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
457 if test "$enable_sndfile" = "yes"; then
725
167ba5a8c15a [svn] - sndfile
nenolod
parents: 710
diff changeset
458 WAV_SNDFILE="-sndfile"
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
459 fi
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
460
725
167ba5a8c15a [svn] - sndfile
nenolod
parents: 710
diff changeset
461 AC_SUBST(WAV_SNDFILE)
165
d2c091891237 [svn] sndfile checks
nenolod
parents: 163
diff changeset
462
278
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
463 dnl *** modplug
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
464
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
465 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
466 [ --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
467 [enable_modplug=$enableval],
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
468 [enable_modplug="yes"]
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
469 )
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
470
278
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
471 if test "$enable_modplug" = "yes"; then
1375
d2c411305bf8 [svn] Modplug conftest fix by Christian "Joker" Birchinger from Gentoo.
chainsaw
parents: 1366
diff changeset
472 AC_CHECK_LIB([modplug],[XMLinearTable],[have_modplug=yes],[have_modplug=no],[-lstdc++])
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
473 else
278
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
474 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
475 have_modplug="no"
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
476 fi
278
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
477
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
478 if test "$have_modplug" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
479 INPUT_PLUGINS="$INPUT_PLUGINS modplug"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
480 fi
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
481
50
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
482 dnl *** flac
1537
f9816e12c724 [svn] - Fix misspelling of flac (bug #545)
nhjm449
parents: 1519
diff changeset
483 AC_ARG_ENABLE( flac,
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
484 [ --disable-flac disable flac input plugin (default=enabled)],,
50
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
485 enable_flac="yes")
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
486
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
487 if test "x$enable_flac" = xyes; then
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
488 AM_PATH_LIBFLAC(have_flac=yes, have_flac=no)
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
489 else
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
490 AC_MSG_RESULT([*** flac plugin disabled per user request ***])
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
491 have_flac=no
e7b06c2bd4e1 [svn] flac output
msameer
parents: 48
diff changeset
492 fi
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
493
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
494 if test "$have_flac" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
495 INPUT_PLUGINS="$INPUT_PLUGINS flac"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
496 fi
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
497
260
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
498 dnl *** WMA
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
499
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
500 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
501 [ --disable-wma disable wma plugin. (default=enabled)],
260
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
502 [enable_wma=$enableval],
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
503 [enable_wma=yes]
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
504 )
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
505
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
506 if test "$enable_wma" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
507 INPUT_PLUGINS="$INPUT_PLUGINS wma"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
508 fi
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
509
325
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
510 dnl *** jack output plugin
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
511 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
512 [ --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
513 enable_jack="yes")
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
514
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
515 if test "x$enable_jack" = xyes; then
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
516 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
517 else
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
518 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
519 have_jack=no
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
520 fi
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
521
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
522 if test "$have_jack" = yes; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
523 OUTPUT_PLUGINS="$OUTPUT_PLUGINS jack"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
524 fi
325
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
525
810
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
526 dnl *** arts output plugin
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
527 AC_ARG_ENABLE( arts,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
528 [ --disable-arts disable arts output plugin (default=enabled)],,
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
529 enable_arts="yes")
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
530
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
531 if test "x$enable_arts" = xyes; then
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
532 AM_PATH_ARTSC(0.9.5, have_arts=yes, have_arts=no)
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
533 else
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
534 AC_MSG_RESULT([*** arts plugin disabled per user request ***])
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
535 have_arts=no
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
536 fi
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
537
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
538 if test "$have_arts" = yes; then
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
539 OUTPUT_PLUGINS="$OUTPUT_PLUGINS arts"
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
540 fi
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
541
269
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
542 dnl *** sid
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
543 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
544 [ --disable-sid disable sid input plugin (default=enabled)],,
269
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
545 enable_sid="yes")
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
546
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
547 if test "x$enable_sid" = xyes; then
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
548 AM_PATH_SIDPLAY(have_sidplay=yes, have_sidplay=no)
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
549 else
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
550 AC_MSG_RESULT([*** sid plugin disabled per user request ***])
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
551 have_sidplay=no
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
552 fi
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
553
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
554 if test "$have_sidplay" = yes; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
555 INPUT_PLUGINS="$INPUT_PLUGINS sid"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
556 fi
269
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
557
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
558 dnl *** Musepack
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
559
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
560 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
561 [ --disable-musepack disable musepack input plugin (default=enabled)],
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
562 [enable_musepack=$enableval],
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
563 [enable_musepack="yes"]
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
564 )
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
565
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
566 if test "$enable_musepack" = "yes"; then
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
567 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
568 enable_musepack=no
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
569 )
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
570 else
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
571 AC_MSG_RESULT([*** Musepack plugin disabled per user request ***])
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
572 enable_musepack=no
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
573 fi
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
574
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
575 if test "$enable_musepack" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
576 INPUT_PLUGINS="$INPUT_PLUGINS musepack"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
577 fi
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
578
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
579 dnl *** OSS output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
580
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
581 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
582 [ --disable-oss disable the OSS output plugin (default=enabled)],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
583 [have_oss=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
584 [have_oss=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
585 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
586
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
587 if test "$have_oss" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
588 AC_MSG_CHECKING(for OSS include dir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
589 OSS_CFLAGS=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
590 if test -f "/etc/oss.conf" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
591 for i in `cat /etc/oss.conf`; do
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
592 t=`echo $i | sed -e 's/OSSLIBDIR=//'`
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
593 if test "$i" != "$t" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
594 if test -f "$t/include/sys/soundcard.h" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
595 OSS_CFLAGS="-I$t/include"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
596 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
597 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
598 done
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
599 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
600 if test -n "$OSS_CFLAGS" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
601 AC_MSG_RESULT([$OSS_CFLAGS])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
602 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
603 AC_MSG_RESULT([not found])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
604 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
605 CFLAGS_save=$CFLAGS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
606 CFLAGS="$CFLAGS $OSS_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
607 AC_CHECK_HEADERS(sys/soundcard.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
608 AC_CHECK_HEADERS(machine/soundcard.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
609 CFLAGS=$CFLAGS_save
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
610
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
611 if test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
612 have_oss=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
613 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
614 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
615
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
616 if test "$have_oss" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
617 AC_DEFINE(HAVE_OSS, 1, [Define if the OSS output plugin should be built])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
618 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
619 have_oss=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
620 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
621
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
622 if test "$have_oss" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
623 OUTPUT_PLUGINS="$OUTPUT_PLUGINS OSS"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
624 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
625
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
626 dnl *** ALSA output plugin
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
627
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
628 AC_ARG_ENABLE(alsa,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
629 [ --disable-alsa disable ALSA input plugin (default=enabled)],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
630 [enable_alsa=$enableval],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
631 [enable_alsa=yes]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
632 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
633
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
634 if test "$enable_alsa" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
635 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
636 [
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
637 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
638 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
639 ],
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
640 [
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
641 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
642 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
643 ]
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
644 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
645 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
646 AC_MSG_RESULT([*** ALSA output plugin disabled per user request ***])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
647 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
648 alsalib_available=check
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
649 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
650
635
6a9e1af8ee75 [svn] Check for have_alsa to enable ALSA, and not have_oss.
chainsaw
parents: 634
diff changeset
651 if test "$have_alsa" = "yes"; then
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
652 OUTPUT_PLUGINS="$OUTPUT_PLUGINS alsa"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
653 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
654
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
655
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
656 dnl *** amidi-plug (note: to avoid checking twice ALSA, this should appear somewhere after the alsa ouput plugin check)
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
657
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
658 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
659 [ --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
660 [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
661 [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
662 )
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
663
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
664 AC_ARG_ENABLE(amidiplug-alsa,
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
665 [ --disable-amidiplug-alsa disable amidi-plug ALSA backend (default=enabled) ],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
666 [enable_amidiplug_alsa=$enableval],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
667 [enable_amidiplug_alsa=auto]
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
668 )
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
669
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
670 AC_ARG_ENABLE(amidiplug-flsyn,
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
671 [ --disable-amidiplug-flsyn disable amidi-plug FluidSynth backend (default=enabled) ],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
672 [enable_amidiplug_fluidsynth=$enableval],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
673 [enable_amidiplug_fluidsynth=auto]
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
674 )
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
675
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
676 AC_ARG_ENABLE(amidiplug-dummy,
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
677 [ --disable-amidiplug-dummy disable amidi-plug dummy backend (default=enabled) ],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
678 [enable_amidiplug_dummy=$enableval],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
679 [enable_amidiplug_dummy=auto]
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
680 )
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
681
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
682
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
683 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
684 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
685 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
686 else
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
687 if test "x$enable_amidiplug_alsa" != "xauto"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
688 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
689 elif test "x$enable_amidiplug_fluidsynth" != "xauto"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
690 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
691 elif test "x$enable_amidiplug_dummy" != "xauto"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
692 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
693 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
694 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
695
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
696 if test "x$enable_amidiplug" = "xcheck"; then
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
697 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
698 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
699 [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
700 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
701 if test "x$alsalib_available" = "xyes"; then
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
702 AM_PATH_AMIDIPLUG_HWSYNTH(ap_have_hwsynth=yes, ap_have_hwsynth=no)
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
703 if test "x$ap_have_hwsynth" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
704 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
705 ap_disable_timidity=yes
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
706 else
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
707 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
708 [fluidsynth_available=yes],[fluidsynth_available=no])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
709 if test "x$fluidsynth_available" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
710 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
711 ap_disable_timidity=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
712 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
713 enable_amidiplug=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
714 AC_MSG_WARN([*** Neither an ALSA-supported hardware synth or FluidSynth software synth (>= 1.0.6) have been found (even if ALSA was detected), so amidi-plug won't be compiled unless you explicitly request it with --enable-amidiplug ***])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
715 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
716 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
717 else
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
718 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
719 [fluidsynth_available=yes],[fluidsynth_available=no])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
720 if test "x$fluidsynth_available" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
721 enable_amidiplug=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
722 ap_disable_timidity=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
723 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
724 enable_amidiplug=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
725 AC_MSG_WARN([*** Neither ALSA or FluidSynth software synth (>= 1.0.6) have been found, so amidi-plug won't be compiled unless you explicitly request it with --enable-amidiplug ***])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
726 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
727 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
728 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
729
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
730 if test "x$enable_amidiplug" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
731 INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
732 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0],,)
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
733 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.6.0],,)
1394
65490480559e [svn] - install the amidi-plug plugins to ${libdir}/amidi-plug.
nenolod
parents: 1387
diff changeset
734 AMIDIPLUGDATADIR=${libdir}/amidi-plug/backends
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
735 AC_SUBST(AMIDIPLUGDATADIR)
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
736 if test "x$enable_amidiplug_alsa" = "xauto" -o "x$enable_amidiplug_alsa" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
737 if test "x$alsalib_available" = "xcheck"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
738 PKG_CHECK_MODULES(ALSA, [alsa >= 1.0],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
739 [alsalib_available=yes],[alsalib_available=no])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
740 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
741 if test "x$alsalib_available" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
742 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-alsa"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
743 enable_amidiplug_alsa=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
744 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
745 if test "x$enable_amidiplug_alsa" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
746 AC_MSG_ERROR([Cannot find ALSA development files (ver >= 1.0), but compilation of AMIDI-Plug ALSA backend has been explicitly requested; please install ALSA dev files and run configure again])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
747 enable_amidiplug_alsa=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
748 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
749 enable_amidiplug_alsa=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
750 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
751 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
752 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
753 if test "x$enable_amidiplug_fluidsynth" = "xauto" -o "x$enable_amidiplug_fluidsynth" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
754 if test "x$fluidsynth_available" != "xyes" -a "x$fluidsynth_available" != "xno"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
755 PKG_CHECK_MODULES(FLUIDSYNTH, [fluidsynth >= 1.0.6],
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
756 [fluidsynth_available=yes],[fluidsynth_available=no])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
757 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
758 if test "x$fluidsynth_available" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
759 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-fluidsynth"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
760 enable_amidiplug_fluidsynth=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
761 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
762 if test "x$enable_amidiplug_fluidsynth" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
763 AC_MSG_ERROR([Cannot find FluidSynth development files (ver >= 1.0.6), but compilation of AMIDI-Plug FluidSynth backend has been explicitly requested; please install FluidSynth dev files and run configure again])
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
764 enable_amidiplug_fluidsynth=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
765 else
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
766 enable_amidiplug_fluidsynth=no
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
767 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
768 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
769 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
770 if test "x$enable_amidiplug_dummy" = "xauto" -o "x$enable_amidiplug_dummy" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
771 AMIDIPLUG_BACKENDS="$AMIDIPLUG_BACKENDS backend-dummy"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
772 enable_amidiplug_dummy=yes
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
773 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
774 AC_SUBST(AMIDIPLUG_BACKENDS)
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
775 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
776
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
777 if test "x$enable_amidiplug" = "xyes"; then
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
778 INPUT_PLUGINS="$INPUT_PLUGINS amidi-plug"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
779 fi
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
780
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
781
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
782 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
783
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
784 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
785 [ --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
786 [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
787 [
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
788 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
789 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
790 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
791 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
792 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
793 ]
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
794 )
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
795
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
796 if test "$enable_timidity" = "yes"; then
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
797 INPUT_PLUGINS="$INPUT_PLUGINS timidity"
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
798 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
799
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
800 dnl FreeBSD newpcm driver detection
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
801
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
802 AC_CACHE_CHECK(for FreeBSD newpcm driver, beep_cv_newpcm_driver,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
803 if test -r "/dev/sndstat"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
804 grep 'newpcm' /dev/sndstat 2>/dev/null 1>/dev/null
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
805 if test "x$?" = "x0"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
806 beep_cv_newpcm_driver="yes"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
807 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
808 beep_cv_newpcm_driver="no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
809 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
810 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
811 beep_cv_newpcm_driver="no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
812 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
813 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
814
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
815 if test "$beep_cv_newpcm_driver" = "yes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
816 AC_DEFINE(HAVE_NEWPCM, 1, [Define if you have the FreeBSD newpcm driver])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
817 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
818
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
819
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
820 AC_CHECK_HEADERS(linux/cdrom.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
821 AC_CHECK_HEADERS(sys/cdio.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
822 AC_CHECK_HEADERS(linux/joystick.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
823 AC_CHECK_HEADERS(unistd.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
824 AC_CHECK_HEADERS(fcntl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
825 AC_CHECK_HEADERS(sys/ioctl.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
826 AC_CHECK_HEADERS(fnmatch.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
827 AC_CHECK_HEADERS(limits.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
828 AC_CHECK_HEADERS(wchar.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
829 AC_CHECK_HEADERS(fts.h)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
830
242
32d7260f413e [svn] Check for lrintf. Fixed by ahuillet.
nenolod
parents: 230
diff changeset
831 AC_CHECK_FUNCS([mkdtemp getmntinfo strtoul lrintf])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
832
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
833
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
834 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
835 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
836 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
837 *-*-sunos* | *-*-solaris* | *-*-linux*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
838 AC_DEFINE(BEEP_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
839 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
840 *-*-freebsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
841 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
842 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
843 *-*-netbsd* | *-*-openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
844 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
845 AC_DEFINE(BEEP_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
846 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
847 *-*darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
848 AC_DEFINE(BEEP_CDROM_BSD,, [Define if cdrom access is in BSD style])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
849 AC_DEFINE(BEEP_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
850 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
851 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
852 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
853
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
854
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
855 AM_CONDITIONAL(HAVE_CDROM, test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
856 AM_CONDITIONAL(HAVE_LINUX_JOYSTICK,test "${ac_cv_header_linux_joystick_h}" = "yes")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
857
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
858 if test -n "$GCC"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
859 then
995
e4089d6b0fcf [svn] Reduce amount of emitted GCC 4.1 warnings to 6. For that boring rainy afternoon, remove the two -Wno statements in CFLAGS (configure.ac) and you will see the actual amount.
chainsaw
parents: 978
diff changeset
860 CFLAGS="$CFLAGS -Wall -Wno-strict-aliasing -Wno-unused-parameter -Wpointer-arith -finline-functions -ffast-math"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
861 case "$CFLAGS" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
862 -g*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
863 *\ -g*) ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
864 *) CFLAGS="$CFLAGS -fomit-frame-pointer" ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
865 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
866 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
867 *-*-freebsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
868 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
869 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
870 CFLAGS="$CFLAGS -funroll-all-loops"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
871 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
872 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
873 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
874
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
875 AC_MSG_CHECKING(if __ELF__ is defined)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
876 AC_EGREP_CPP(yes,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
877 [#ifdef __ELF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
878 yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
879 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
880 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
881 [is_elf=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
882 [is_elf=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
883 )
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
884 AC_MSG_RESULT([${is_elf}])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
885
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
886
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
887 have_solaris=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
888 have_sun=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
889 ARCH_DEFINES=""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
890 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
891 *-*-openbsd* | *-*-netbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
892 have_sun=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
893 if test "${is_elf}" = "no"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
894 then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
895 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
896 fi
758
f9e8807ea6e5 [svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents: 756
diff changeset
897 OUTPUT_PLUGINS="$OUTPUT_PLUGINS sun"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
898 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
899 *-*-darwin*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
900 AC_DEFINE(SYMBOL_PREFIX, "_", [Define to symbol prefix, if any])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
901 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
902 *-hpux-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
903 ARCH_DEFINES="-DHPUX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
904 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
905 *-*-solaris* | *-*-sunos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
906 have_solaris=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
907 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
908 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
909
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
910 arch_type=other
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
911 x86_asm=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
912 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
913 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
914 arch_type=ix86
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
915 case "$host" in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
916 *-*-netbsd* | *-*openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
917 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
918 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
919 ARCH_DEFINES="-DI386_ASSEM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
920 x86_asm=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
921 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
922 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
923 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
924 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
925
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
926 dnl *** Scrobbler ***
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
927
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
928 scrobbler="yes"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
929
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
930 dnl Checks for libmusicbrainz
692
eaf0dfa9e995 [svn] - Use pkg-config to detect libmusicbrainz.
nenolod
parents: 688
diff changeset
931 PKG_CHECK_MODULES(MUSICBRAINZ, [libmusicbrainz >= 2.0.0], , [scrobbler="no"])
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
932
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
933 dnl libcurl check
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
934
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
935 my_cv_curl_vers=NONE
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
936 dnl check is the plain-text version of the required version
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
937 check="7.9.7"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
938 dnl check_hex must be UPPERCASE if any hex letters are present
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
939 check_hex="070907"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
940
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
941 AC_MSG_CHECKING([for curl >= $check])
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
942
960
0c5d8ffeba88 [svn] - sync configure.ac with stable
nenolod
parents: 937
diff changeset
943 PKG_CHECK_MODULES(CURL, [libcurl >= 7.9.7], , [scrobbler="no"])
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
944
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
945 if test "x$scrobbler" = "xyes"; then
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
946 GENERAL_PLUGINS="$GENERAL_PLUGINS scrobbler"
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
947 fi
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
948
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
949 AC_SUBST(CURL_CFLAGS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
950 AC_SUBST(CURL_LIBS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
951 AC_SUBST(MUSICBRAINZ_LIBS)
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
952
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
953 dnl *** End of Scrobbler checks ***
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
954
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
955 dnl *** libparanormal checks
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
956
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
957 AC_ARG_ENABLE(paranormal,
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
958 [ --disable-paranormal disable paranormal vis plugin. (default=enabled)],
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
959 [have_paranormal=$enableval],
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
960 [have_paranormal=yes])
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
961
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
962 if test "x$ap_disable_paranormal" = "xyes"; then
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
963 have_paranormal=no
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
964 AC_MSG_RESULT([*** paranormal plugin disabled by request ***])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
965 else
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
966 have_paranormal=yes
1519
1ffc2670d6b0 [svn] - oh, define an actual SDL version here. :P
nenolod
parents: 1518
diff changeset
967 AM_PATH_SDL(1.2.5, , [
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
968 AC_MSG_WARN([*** SDL is not installed. Paranormal will not be built. ***])
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
969 have_paranormal="no"
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
970 ])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
971 fi
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
972
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
973 AC_ARG_ENABLE(xspf,
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
974 [ --disable-xspf disable XSPF support. (default=enabled)],
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
975 [have_xspf=$enableval], [have_xspf=yes])
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
976
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
977 AM_PATH_XML2(2.0.0, , [
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
978 AC_MSG_WARN([*** libxml2 is not installed. Paranormal nor XSPF support will not be built. ***])
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
979 have_paranormal="no"
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
980 have_xspf="no"
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
981 ])
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
982
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
983 if test "$have_paranormal" = "yes"; then
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
984 VISUALIZATION_PLUGINS="$VISUALIZATION_PLUGINS paranormal"
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
985 fi
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
986
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
987 if test "$have_xspf" = "yes"; then
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
988 CONTAINER_PLUGINS="$CONTAINER_PLUGINS xspf"
1569
3af18d169044 [svn] - Plugins/Container/xspf/xspf.c: xspf cleanups
nenolod
parents: 1568
diff changeset
989 AC_DEFINE(HAVE_XSPF_PLAYLIST, 1, [Define if XSPF playlists are available.])
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
990 fi
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
991
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
992 dnl *** End of all plugin checks ***
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
993
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
994 AC_SUBST(ARCH_DEFINES)
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
995
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
996 dnl XXX delete ASAP -nenolod
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
997 AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
998 AM_CONDITIONAL(USE_X86ASM, test "x$x86_asm" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
999 AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1000 AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1001
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
1002 plugindir="$libdir/audacious"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1003 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1004
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1005 if test "x$enable_one_plugin_dir" = "xyes"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1006 pluginsubs="\\\"Plugins\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1007 INPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1008 OUTPUT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1009 EFFECT_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1010 GENERAL_PLUGIN_DIR=Plugins
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1011 VISUALIZATION_PLUGIN_DIR=Plugins
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
1012 CONTAINER_PLUGIN_DIR=Plugins
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1013 else
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
1014 pluginsubs="\\\"Output\\\",\\\"Input\\\",\\\"Effect\\\",\\\"General\\\",\\\"Visualization\\\",\\\"Container\\\""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1015 INPUT_PLUGIN_DIR=Input
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1016 OUTPUT_PLUGIN_DIR=Output
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1017 EFFECT_PLUGIN_DIR=Effect
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1018 GENERAL_PLUGIN_DIR=General
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1019 VISUALIZATION_PLUGIN_DIR=Visualization
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
1020 CONTAINER_PLUGIN_DIR=Container
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1021 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1022
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1023 AC_SUBST(INPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1024 AC_SUBST(OUTPUT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1025 AC_SUBST(EFFECT_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1026 AC_SUBST(GENERAL_PLUGIN_DIR)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1027 AC_SUBST(VISUALIZATION_PLUGIN_DIR)
1561
079c0268c56c [svn] - bootstrap for ContainerPlugin dir stuff
nenolod
parents: 1537
diff changeset
1028 AC_SUBST(CONTAINER_PLUGIN_DIR)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1029 AC_SUBST(pluginsubs)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1030
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
1031 dnl XXX Work around some autoconf bugs.
1422
360ab7d8f221 [svn] - try NOW
nenolod
parents: 1421
diff changeset
1032 if test "$prefix" = "NONE"; then
1421
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
1033 prefix="${ac_default_prefix}"
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
1034 fi
fe6d04a4019a [svn] - try again
nenolod
parents: 1420
diff changeset
1035
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
1036 if test -z "$datadir"; then
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
1037 datadir="${prefix}/share"
1418
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
1038 fi
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
1039
1425
504534b687c0 [svn] - better quoting
nenolod
parents: 1422
diff changeset
1040 localedir="$datadir/locale"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1041 AC_SUBST(localedir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1042
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1043 BEEP_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1044 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1045
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1046 if test "$enable_user_plugin_dir" = "no"; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1047 AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1048 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1049
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1050 AC_SUBST(BEEP_DEFINES)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1051
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1052 AC_SUBST(beepdir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1053 AC_SUBST(plugindir)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1054
634
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
1055 AC_SUBST(EFFECT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
1056 AC_SUBST(GENERAL_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
1057 AC_SUBST(INPUT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
1058 AC_SUBST(OUTPUT_PLUGINS)
fb9825a943e3 [svn] Conditionalize the buildsystem.
nenolod
parents: 562
diff changeset
1059 AC_SUBST(VISUALIZATION_PLUGINS)
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1060 AC_SUBST(CONTAINER_PLUGINS)
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
1061
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1062 AC_CONFIG_FILES([
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1063 audacious.1
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1064 audacious.spec
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1065 audacious.pc
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1066 audacious/audacious.desktop
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1067 audacious/images/Makefile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1068 libaudacious/Makefile
1105
4be4d74db123 [svn] automatic character encoding detector for id3 metadata. --enable-chardet enables this feature.
yaz
parents: 1029
diff changeset
1069 libguess/Makefile
1613
9becbe564217 [svn] - chardet patch for Russian language witten by Valentine Sinitsyn.
yaz
parents: 1603
diff changeset
1070 librcd/Makefile
62
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1071 Plugins/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1072 Plugins/Output/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1073 Plugins/Output/OSS/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1074 Plugins/Output/esd/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1075 Plugins/Output/alsa/Makefile
325
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
1076 Plugins/Output/jack/Makefile
810
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
1077 Plugins/Output/arts/Makefile
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
1078 Plugins/Output/arts/arts_helper/Makefile
62
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1079 Plugins/Output/disk_writer/Makefile
759
9b1126434a72 [svn] - generate makefile for BSD/Sun plugin.
nenolod
parents: 758
diff changeset
1080 Plugins/Output/sun/Makefile
62
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1081 Plugins/Input/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1082 Plugins/Input/mpg123/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1083 Plugins/Input/aac/Makefile
1025
2b42e48a688e [svn] - fix a potential crash in our read callback (for VFS)
nenolod
parents: 1023
diff changeset
1084 Plugins/Input/aac/mp4ff/Makefile
62
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1085 Plugins/Input/aac/libfaad2/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1086 Plugins/Input/aac/src/Makefile
278
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
1087 Plugins/Input/modplug/Makefile
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
1088 Plugins/Input/modplug/archive/Makefile
37316876ef6e [svn] Use modplug instead of mikmod. Supports more formats & compressed files.
chainsaw
parents: 277
diff changeset
1089 Plugins/Input/modplug/gui/Makefile
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
1090 Plugins/Input/musepack/Makefile
62
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1091 Plugins/Input/tonegen/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1092 Plugins/Input/vorbis/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1093 Plugins/Input/cdaudio/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1094 Plugins/Input/wav/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1095 Plugins/Input/flac/Makefile
6491a9ca0f26 [svn] configure related path changes
nenolod
parents: 50
diff changeset
1096 Plugins/Input/flac/plugin_common/Makefile
269
1b82a9932b60 [svn] Import sid plugin. Ported from XMMS by giacomo.
chainsaw
parents: 263
diff changeset
1097 Plugins/Input/sid/Makefile
111
9d6a24d21322 [svn] Update configure to generate the makefile for the SPC decoder...
nenolod
parents: 89
diff changeset
1098 Plugins/Input/console/Makefile
139
d83d1fdb1790 [svn] Generate makefiles for wma plugin.
nenolod
parents: 121
diff changeset
1099 Plugins/Input/wma/Makefile
d83d1fdb1790 [svn] Generate makefiles for wma plugin.
nenolod
parents: 121
diff changeset
1100 Plugins/Input/wma/libffwma/Makefile
285
d1762728ea4b [svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents: 283
diff changeset
1101 Plugins/Input/timidity/Makefile
d1762728ea4b [svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents: 283
diff changeset
1102 Plugins/Input/timidity/libtimidity/Makefile
d1762728ea4b [svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents: 283
diff changeset
1103 Plugins/Input/timidity/src/Makefile
332
07576d3ed844 [svn] Sexypsf input plugin; patch by dai in bug #395.
chainsaw
parents: 325
diff changeset
1104 Plugins/Input/sexypsf/Makefile
359
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
1105 Plugins/Input/adplug/Makefile
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
1106 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
1107 Plugins/Input/amidi-plug/Makefile
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1108 Plugins/Input/amidi-plug/pcfg/Makefile
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1109 Plugins/Input/amidi-plug/backend-alsa/Makefile
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1110 Plugins/Input/amidi-plug/backend-fluidsynth/Makefile
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1111 Plugins/Input/amidi-plug/backend-dummy/Makefile
1457
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
1112 Plugins/Visualization/Makefile
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
1113 Plugins/Visualization/blur_scope/Makefile
bbd5869239e5 [svn] RockLight visualization plugin ported from XMMS.
chainsaw
parents: 1425
diff changeset
1114 Plugins/Visualization/rocklight/Makefile
116
d6466298eee3 [svn] New and improved configure.ac!
nenolod
parents: 111
diff changeset
1115 Plugins/General/Makefile
d6466298eee3 [svn] New and improved configure.ac!
nenolod
parents: 111
diff changeset
1116 Plugins/General/song_change/Makefile
157
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
1117 Plugins/General/lirc/Makefile
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
1118 Plugins/General/scrobbler/Makefile
277
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1119 Plugins/Effect/Makefile
937
6158ee7d8b06 [svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents: 920
diff changeset
1120 Plugins/Effect/audiocompress/Makefile
277
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1121 Plugins/Effect/ladspa/Makefile
920
999d1af32ab4 [svn] Extra_stereo effect plugin ported by deitarion. Some last pointer-related touchups by nemo & me.
chainsaw
parents: 885
diff changeset
1122 Plugins/Effect/stereo_plugin/Makefile
812
f9a1ddb72432 [svn] - add voice_removal plugin. Ported by: Thomas Cort <linuxgeek -at- gmail.com>, tcort @ #audacious.
nenolod
parents: 810
diff changeset
1123 Plugins/Effect/voice_removal/Makefile
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1124 Plugins/Container/Makefile
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1125 po/Makefile.in
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1126 intl/Makefile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1127 icons/Makefile
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1128 skin/Makefile
562
5cdadcf74ec3 [svn] needed requirements for objective-based buildsystem (automake replacement)
nenolod
parents: 539
diff changeset
1129 mk/rules.mk
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1130 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1131
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1132 AC_OUTPUT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1134
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1135 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1136 echo "Configuration:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1137 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1138 echo " Install path: ${prefix}"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1139
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1140 if test "$BEEP_PATH" != "no"; then
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
1141 echo " Current Audacious executable: $BEEP_PATH"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1142 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1143
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1144 echo " Configuration path: \$HOME/$rc_path"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1145 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1146 echo " Use one plugin dir: $enable_one_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1147 echo " Allow user plugin dir: $enable_user_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1148 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1149 echo " XMMS Legacy"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1150 echo " -----------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1151 echo " Equalization (works only with mpg123) $use_xmms_eq"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1152 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1153 echo " GNOME support"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1154 echo " -------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1155 echo " GConf support $enable_gconf"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1156 echo " VFS support $enable_gnomevfs"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1157 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1158 echo " Output Plugins"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1159 echo " --------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1160 echo " Open Sound System (oss): $have_oss"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1161 echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1162 echo " Enlightenment Sound Daemon (esd): $have_esd"
325
ea321d1dae48 [svn] JACKd output plugin via external contractor james@develia.org.
nenolod
parents: 319
diff changeset
1163 echo " Jack Audio Connection Kit (jack): $have_jack"
810
e9509e909193 [svn] ported xmms-arts 0.7.1 to audacious and integrated it in the build process
giacomo
parents: 794
diff changeset
1164 echo " Analog Realtime Synthesizer (arts): $have_arts"
758
f9e8807ea6e5 [svn] - Initial port of the bsd/sun audio output plugin from XMMS. Needs testing.
nenolod
parents: 756
diff changeset
1165 echo " BSD/SUN audio output (sun): $have_sun"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1166 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1167 echo " Input Plugins"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1168 echo " -------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1169 echo " MPEG 1/2/3 (mpg123): $enable_mp3"
2
6efb9e514224 [svn] Import AAC stuff.
nenolod
parents: 0
diff changeset
1170 echo " MPEG 4 Audio (AAC): $enable_aac"
260
4b1c9d1a469b [svn] Made WMA support configurable, defaults to on.
chainsaw
parents: 242
diff changeset
1171 echo " Windows Media Audio (wma): $enable_wma"
293
9b191695629c [svn] Add musepack input plugin & hook into build system.
chainsaw
parents: 285
diff changeset
1172 echo " .mpc playback (musepack): $enable_musepack"
1366
f66048e606f0 [svn] Show whether modplug will actually be built (wrong var was being displayed).
chainsaw
parents: 1353
diff changeset
1173 echo " Module decoder (modplug): $have_modplug"
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1174 echo " MIDI modular plugin (amidi-plug): $enable_amidiplug"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1175 echo " -> ALSA backend: $enable_amidiplug_alsa"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1176 echo " -> FluidSynth backend: $enable_amidiplug_fluidsynth"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1177 echo " -> dummy backend: $enable_amidiplug_dummy"
285
d1762728ea4b [svn] Timidity support, via external contractor dai+audacious@cdr.jp.
nenolod
parents: 283
diff changeset
1178 echo " MIDI to WAVE converter (timidity): $enable_timidity"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1179 echo " CD Digital Audio (cdda): yes"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1180 echo " Microsoft WAV (wav): yes"
184
740c072f8e23 [svn] List sndfile extensions in the plugin configuration table.
chainsaw
parents: 165
diff changeset
1181 echo " + sndfile extensions: $enable_sndfile"
11
ec508fe218b9 [svn] - Tone generator plugin.
nenolod
parents: 6
diff changeset
1182 echo " Tone Generator: yes"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1183 echo " Ogg Vorbis (vorbis): $have_oggvorbis"
270
c7efd92ee0e8 [svn] Update plugin descriptions in feature overview.
chainsaw
parents: 269
diff changeset
1184 echo " Free Lossless Audio Codec (flac): $have_flac"
c7efd92ee0e8 [svn] Update plugin descriptions in feature overview.
chainsaw
parents: 269
diff changeset
1185 echo " Commodore 64 audio (sid): $have_sidplay"
c7efd92ee0e8 [svn] Update plugin descriptions in feature overview.
chainsaw
parents: 269
diff changeset
1186 echo " Game music (spc, nsf & gbs): yes"
343
7b71e0dbb62d [svn] Replace a tab with spaces to make Mikachu happy.
chainsaw
parents: 332
diff changeset
1187 echo " PlayStation audio (sexypsf): yes"
359
8df427a314a8 [svn] Adlib synthesizer (AdPlug) support.
chainsaw
parents: 343
diff changeset
1188 echo " AdLib synthesizer (adplug): $have_adplug"
270
c7efd92ee0e8 [svn] Update plugin descriptions in feature overview.
chainsaw
parents: 269
diff changeset
1189 echo
116
d6466298eee3 [svn] New and improved configure.ac!
nenolod
parents: 111
diff changeset
1190 echo " General"
d6466298eee3 [svn] New and improved configure.ac!
nenolod
parents: 111
diff changeset
1191 echo " -------"
d6466298eee3 [svn] New and improved configure.ac!
nenolod
parents: 111
diff changeset
1192 echo " Song Change: yes"
157
8238f6aa0f09 [svn] Integrate LIRC plugin into build system.
chainsaw
parents: 139
diff changeset
1193 echo " LIRC: $have_lirc"
688
cc1969408403 [svn] - add scrobbler support
nenolod
parents: 686
diff changeset
1194 echo " AudioScrobbler Client: $scrobbler"
1493
c5bb3813fbd8 [svn] - autodetect libnotify, and if found, build the notify plugin
nenolod
parents: 1457
diff changeset
1195 echo " libnotify Plugin: $have_libnotify"
270
c7efd92ee0e8 [svn] Update plugin descriptions in feature overview.
chainsaw
parents: 269
diff changeset
1196 echo
277
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1197 echo " Effect"
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1198 echo " ------"
937
6158ee7d8b06 [svn] Port AudioCompress (AGC) effect plugin from XMMS, as requested by Junics on SorceryNet.
chainsaw
parents: 920
diff changeset
1199 echo " AudioCompressor (AGC): yes"
277
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1200 echo " LADSPA effects host (ladspa): yes"
812
f9a1ddb72432 [svn] - add voice_removal plugin. Ported by: Thomas Cort <linuxgeek -at- gmail.com>, tcort @ #audacious.
nenolod
parents: 810
diff changeset
1201 echo " Voice Removal: yes"
277
0cf2cc6d0fe5 [svn] Ladspa host module for Audacious.
nenolod
parents: 270
diff changeset
1202 echo
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1203 echo " Visualization"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1204 echo " -------------"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1205 echo " Blur Scope: yes"
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
1206 echo " Paranormal Visualization Library: $have_paranormal"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1207 echo
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1208 echo " Container"
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1209 echo " -------------"
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1210 echo " Winamp PLS playlist format (pls): yes"
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1211 echo " M3U playlist format (m3u): yes"
1568
0a927f814a12 [svn] - experimental XSPF support
nenolod
parents: 1562
diff changeset
1212 echo " XML Sharable Playlist Format (xspf): $have_xspf"
1562
71c91ebdb55c [svn] - further progress
nenolod
parents: 1561
diff changeset
1213 echo
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1214
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1215 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then
32
8aee6a5bcc70 [svn] Libmikmod.
nenolod
parents: 23
diff changeset
1216 echo "Note: You need to have thread-safe xlibs to use Audacious."
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1217 echo "If you are using libc5 thread aware Xlibs just skip this."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1218 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1219 echo "If you don't have those libs and you are on a libc5 system get them at:"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1220 echo "ftp://ftp.dent.med.uni-muenchen.de/pub/wmglo/"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1221 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1222
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1223 if test "$BEEP_PATH" != "no" && test "$prefix/bin/audacious" != "$BEEP_PATH" ; then
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1224 echo ""
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1225 echo "Note: Configure has discovered that you already have Audacious installed"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1226 echo "and it does not match with the given --prefix. You have Audacious installed "
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1227 echo "in $(dirname $BEEP_PATH) and you chose $prefix/bin."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1228 echo
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1229 echo "If you don't want two copies of Audacious installed, rerun configure with"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1230 echo "the --prefix option set to the location of the old Audacious, or uninstall"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1231 echo "the old Audacious."
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1232 fi
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
1233
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
1234 if test "x$ap_disable_timidity" = "xyes" && test "x$enable_timidity" = "xno"; then
1387
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1235 echo "Note: an ALSA-supported hardware midi synth or a FluidSynth software synth"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1236 echo "was detected in configuration; in order to use it, the amidi-plug input"
b0590e16329f [svn] import amidi-plug 0.5
giacomo
parents: 1375
diff changeset
1237 echo "plugin will be compiled in place of timidity. If you wish to compile timidity"
523
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
1238 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
1239 echo ""
42380ff32bad [svn] updated configure.ac and macros; added amidi-plug and conditions for timidity compilation
giacomo
parents: 487
diff changeset
1240 fi